Gan
Gan

Reputation: 51

Flyout menu with custom button, XAMARIN FORMS

I would ask if it is possible to make your own button to open the menu. The point is that when making a shell flyout menu the button to open the side menu is at the top and I would need it at the bottom. I will be glad if someone can help me, thanks

Upvotes: 0

Views: 1092

Answers (2)

Saigronas
Saigronas

Reputation: 38

You can bind to a bool in mvvm:

<Shell ...
       FlyoutIsPresented="{Binding IsFlyoutOpen}">
</Shell>

Alternatively you can set the state directly in code behind with:

Shell.Current.FlyoutIsPresented = false;

For more information take a look at https://learn.microsoft.com/nb-no/xamarin/xamarin-forms/app-fundamentals/shell/flyout

Upvotes: 0

Ramon Farizel
Ramon Farizel

Reputation: 185

Maybe it could help

<Shell ...
       FlyoutIcon="flyouticon.png">
    ...       
</Shell>

Upvotes: 1

Related Questions