Reputation: 545
I have added an ImageButton in my MAUI application to open the flyout. The command that calls the button works and is well executed but the following line of code (which is to open the flyout, link to flyout documentation on microsoft website) only works on Android but not on Windows (I have not tested on macOS and IOS).
private void ShowFlyoutExecute(object obj)
{
Shell.Current.FlyoutIsPresented = true;
}
Do you have a solution to this problem or is it normal and if so what alternative do I have?
thank you
Upvotes: 2
Views: 420
Reputation: 411
I'm running VS 17.3.2. FlyoutIsPresented = true;
does not work in my Android emulator. It works just fine when running in Windows.
Upvotes: 0
Reputation: 14475
I reproduced the problem with visual studio 17.2.0
preview .
However, the issue has been resolved after I updated visual studio to 17.3.0
(preview 1.0).
So you can try to update visual studio to see if the problem persists.
See the issue here : https://github.com/dotnet/maui/issues/5932#issuecomment-1120167743 .
Upvotes: 1