1 write to MenuItem
Microsoft.Maui.Controls (1)
Shell\MenuShellItem.cs (1)
14
MenuItem
= menuItem;
16 references to MenuItem
Microsoft.Maui.Controls (16)
Shell\MenuShellItem.cs (11)
15
MenuItem
.Parent = this;
23
MenuItem
.PropertyChanged += OnMenuItemPropertyChanged;
26
IList<string> IStyleSelectable.Classes => ((IStyleSelectable)
MenuItem
).Classes;
33
Shell.SetMenuItemTemplate(this, Shell.GetMenuItemTemplate(
MenuItem
));
37
Shell.SetFlyoutItemIsVisible(this, Shell.GetFlyoutItemIsVisible(
MenuItem
));
45
else if (propertyName == Shell.FlyoutItemIsVisibleProperty.PropertyName &&
MenuItem
!= null)
46
Shell.SetFlyoutItemIsVisible(
MenuItem
, Shell.GetFlyoutItemIsVisible(this));
50
bool IMenuItemController.IsEnabled { get =>
MenuItem
.IsEnabled; set =>
MenuItem
.IsEnabled = value; }
54
(
MenuItem
as IMenuItemController).Activate();
60
SetInheritedBindingContext(
MenuItem
, BindingContext);
Shell\Shell.cs (4)
640
else if (bo is MenuShellItem msi && msi.
MenuItem
!= null && msi.
MenuItem
.IsSet(MenuItemTemplateProperty))
641
return msi.
MenuItem
;
812
((IMenuItemController)menuShellItem.
MenuItem
).Activate();
Shell\ShellFlyoutItemsManager.cs (1)
211
return Shell.GetFlyoutItemIsVisible(msi.
MenuItem
);