-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlyoutIsPresented is not working on Android #20779
Comments
Can you test with the latest nightly build? |
Hi @bhuwancb99. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
hi @PureWeen - i can't understand your question. can you please explain more. |
@bhuwancb99 I'm pretty sure this will be fixed by SR3 You can test if it's going to be fixed by updating to our nightly nugets as is described here |
Hi @bhuwancb99. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@PureWeen thanks now it's working after update. |
Description
In .NET MAUI, within the AppShell, when 'Shell.NavBarIsVisible' is set to 'False', and a button is clicked on any page, triggering the code 'Shell.Current.FlyoutIsPresented = !Shell.Current.FlyoutIsPresented;' in the code-behind, it does not function as expected on Android. However, it works as intended on iOS. Interestingly, the same implementation in the previous version for Xamarin.Forms was successful. Note: Upon clicking the button, the Hamburger menu does not open. However, after clicking the button for the first time, subsequently clicking any of the tab bar icons does open the menu.
Steps to Reproduce
i am downloaded code for this URL -https://github.com/dotnet/maui-samples/tree/main/8.0/Fundamentals/Shell
and added one line in AppShell-'Shell.NavBarIsVisible="False"' added button in CatsPage.xaml file-
button event
private void Button_Clicked(object sender, EventArgs e) { Shell.Current.FlyoutIsPresented = !Shell.Current.FlyoutIsPresented; }
Link to public reproduction project repository
https://github.com/dotnet/maui-samples/tree/main/8.0/Fundamentals/Shell
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: