Disabling a MenuBarItem doesn't stop its sub-items from appearing when clicked #11602
Labels
area-controls-menubar
Desktop MenuBarItems
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
If a top-level
MenuBarItem
, with sub-items, has itsIsEnabled
property set tofalse
then the sub-items still appear when the menu bar item is clicked. This is contrary to expectation. Verified on Windows only.Steps to Reproduce
Create a File->New .NET Maui app
In
MainPage.xaml
add a top-level menu with a single subitem by adding the following after the start of the<ContentPage>
element and before the start of its nested<ScrollView>
element:MainPage.xaml.cs
add anOnAppearing()
method to theMainPage
class and disable the top-levelMenuBarItem
:Link to public reproduction project repository
https://github.com/andyjohnson0/MauiMenuItemEnableIssue
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10.0.17763.0
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: