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.
34 lines
841 B
34 lines
841 B
namespace ex_ShellRoutes;
|
|
|
|
public partial class Page1_2_2 : ContentPage
|
|
{
|
|
public Page1_2_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 GoBackThenToPage1_2_3(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("../page1_2_3");
|
|
}
|
|
|
|
private async void GoBack(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("..");
|
|
}
|
|
|
|
private async void GoBackTwiceThenToPage2(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("../../page2");
|
|
}
|
|
} |