0

I have an One Page application "ContentPage" and i can't close the app with "PopAsync()"

I'm debugging with Samsung J6.

// Instantiated page
MainPage = new NavigationPage(new MainPage());

// Method used to close the application
private async void Leave(object sender, EventArgs e)
{
  await Navigation.PopAsync();
}
Guilherme Nimer
  • 555
  • 2
  • 14

1 Answers1

0

PopAsync just navigates to the root page of the app, it doesn't close the app. If you want to terminate app look here

How to terminate a Xamarin application?

Patrick Goode
  • 1,412
  • 5
  • 20
  • 35