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.

20 lines
406 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 PushNewPage2(object sender, EventArgs e)
{
await Navigation.PushAsync(new NewPage2());
}
}