Home > Software design >  Toggle AppShell on button click in Xamarin.forms
Toggle AppShell on button click in Xamarin.forms

Time:12-28

I have AppShell that I pull from the side to show but I want to achieve this on button click to toggle AppShell. I am not using the default AppShell navbar so I disabled the Shell.NavBarIsVisible="False" since its not needed.

I want to achieve this with the custom button to toggle AppShell.

CodePudding user response:

You can open it with this , true to open or false to close

  private void Bottommenu3_Clicked(object sender, EventArgs e)
    
        Shell.Current.FlyoutIsPresented = true;
    }
  • Related