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.
56 lines
1.3 KiB
56 lines
1.3 KiB
namespace ex_ShellRoutes;
|
|
|
|
public partial class Page1_2 : ContentPage
|
|
{
|
|
public Page1_2()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnNavigatedTo(NavigatedToEventArgs args)
|
|
{
|
|
labelNavStack.Text = Shell.Current.Navigation.NavigationStack.Aggregate("Stack", (total, next) => $"{total} > {next?.Title ?? ""}");
|
|
}
|
|
|
|
private async void GoToPage1_2_1(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1_2_1");
|
|
}
|
|
|
|
private async void GoToPage1_3(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1_3");
|
|
}
|
|
|
|
private async void GoBackThenToPage1_3(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("../page1_3");
|
|
}
|
|
|
|
private async void GoToPage1_2(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1_2");
|
|
}
|
|
|
|
private async void GoToPage1_1(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1/page1_1");
|
|
}
|
|
|
|
private async void GoToPage1_2_2(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("//page1/page1_2/page1_2_2");
|
|
}
|
|
|
|
private async void GoToPage1_2_2WithoutSlashes(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("page1/page1_2/page1_2_2");
|
|
}
|
|
|
|
private async void GoToPage1(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("//page1");
|
|
}
|
|
|
|
|
|
} |