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
707 B
31 lines
707 B
namespace ex_ShellRoutes;
|
|
|
|
public partial class NewPage2 : ContentPage
|
|
{
|
|
public NewPage2()
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = Shell.Current;
|
|
}
|
|
|
|
private async void GoToNewPage1(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("newpage1");
|
|
}
|
|
|
|
private async void GoToAbsoluteNewPage1(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("//newpage1");
|
|
}
|
|
|
|
private async void PushNewPage2(object sender, EventArgs e)
|
|
{
|
|
//await Shell.Current.GoToAsync("newpage2");
|
|
await Navigation.PushAsync(new NewPage2());
|
|
}
|
|
|
|
private async void GoToNewPage3(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("newpage1/newpage3");
|
|
}
|
|
} |