When I open my app, I start with a ContentPage "Login()". Its just a lone ContentPage with a few controls on it, no navigation stack or anything.
When someone logs in, it does:
App.Current.MainPage = new Home();
"Home" is a MasterDetailPage. It has a bunch of content, a slide-out hamburger menu, and uses Navigation.PushAsync to show other pages. This is the "main" page of the app that you'd get to if you were already logged in.
My issue comes when I want to have a "Logout" button that clears everything and bumps you back to login...
How can I just dispose of the Home() MasterDetailPage and its contents and navigate back to the Login() page gracefully?