15 references to MenuBarItem
Microsoft.Maui.Controls (15)
Hosting\AppHostBuilderExtensions.cs (1)
116 handlersCollection.AddHandler<MenuBarItem, MenuBarItemHandler>();
Menu\MenuBar.cs (2)
44 internal void SyncMenuBarItemsFromPages(IList<MenuBarItem> menuBarItems) 48 var menuBarItem = menuBarItems[i];
Menu\MenuBarItem.cs (2)
13 BindableProperty.Create(nameof(Text), typeof(string), typeof(MenuBarItem), null); 17 typeof(MenuBarItem), true);
Menu\MenuBarTracker.cs (6)
7 internal class MenuBarTracker : MenuItemTracker<MenuBarItem> 60 protected override IList<MenuBarItem> GetMenuItems(Page page) => 63 protected override IComparer<MenuBarItem> CreateComparer() => 66 class MenuBarItemComparer : IComparer<MenuBarItem> 68 public int Compare(MenuBarItem x, MenuBarItem y) => x.Priority.CompareTo(y.Priority);
Page\Page.cs (4)
89 var menuBarItems = new ObservableCollection<MenuBarItem>(); 169 /// Gets the <see cref="MenuBarItem"/> objects for this page, implemented in a platform-specific manner. 171 public IList<MenuBarItem> MenuBarItems { get; internal set; } 494 foreach (MenuBarItem menubarItem in MenuBarItems)