Hello,
You can add BindingContext = new AppShellViewModel(); in your AppShell.xaml.cs , then when you click Sign Out button, SignOut method will be executed.
public partial class AppShell : Shell{
public AppShell() {
InitializeComponent();
Routing.RegisterRoute("LoginPage", typeof(LoginPage));
BindingContext = new AppShellViewModel();
}
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.