6 references to MenuItemTemplateProperty
Microsoft.Maui.Controls (6)
Shell\MenuShellItem.cs (1)
32
if (e.PropertyName == Shell.
MenuItemTemplateProperty
.PropertyName)
Shell\Shell.cs (5)
155
public static DataTemplate GetMenuItemTemplate(BindableObject obj) => (DataTemplate)obj.GetValue(
MenuItemTemplateProperty
);
166
public static void SetMenuItemTemplate(BindableObject obj, DataTemplate menuItemTemplate) => obj.SetValue(
MenuItemTemplateProperty
, menuItemTemplate);
638
if (bo is MenuItem mi && mi.Parent != null && mi.Parent.IsSet(
MenuItemTemplateProperty
))
640
else if (bo is MenuShellItem msi && msi.MenuItem != null && msi.MenuItem.IsSet(
MenuItemTemplateProperty
))
649
BindableProperty bp = bo is IMenuItemController ?
MenuItemTemplateProperty
: ItemTemplateProperty;