-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Render Menuitems in the Shell as disabled if a command’s CanExecute returns false #9492
Copy link
Copy link
Open
Labels
area-controls-menubarDesktop MenuBarItemsDesktop MenuBarItemsarea-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyouts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
I’ve created a sample maui app that has a menu item in its shell:
https://github.com/matthewclendening/MauiAppWithMenuItem
(Reference docs here: https://docs.microsoft.com/en-us/dotnet/maui/fundamentals/shell/flyout#menu-items)
Currently, if the item's canexecute handler returns false, it has no affect on how the menu item is rendered (like being grayed out). I would propose that this becomes built in functionality. Also, the menuitem's IsEnabled property is readonly.
Intended Use-Case
MenuItems at the shell level should be able to be disabled.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-menubarDesktop MenuBarItemsDesktop MenuBarItemsarea-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyouts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working