You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
722 B
31 lines
722 B
using System.Text;
|
|
|
|
namespace ex_ShellRoutes;
|
|
|
|
public partial class Page1 : ContentPage
|
|
{
|
|
public Page1()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnNavigatedTo(NavigatedToEventArgs args)
|
|
{
|
|
labelNavStack.Text = Shell.Current.Navigation.NavigationStack.Aggregate("Stack", (total, next) => $"{total} > {next?.Title ?? ""}");
|
|
}
|
|
|
|
private async void GoToPage1_1(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1_1");
|
|
}
|
|
|
|
private async void GoToPage1_2(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1/page1_2");
|
|
}
|
|
|
|
private async void GoToPage1_3(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("/page1_3");
|
|
}
|
|
} |