1 implementation of IMenuBarItem
Microsoft.Maui.Controls (1)
Menu\MenuBarItem.cs (1)
9
public partial class MenuBarItem : BaseMenuItem,
IMenuBarItem
31 references to IMenuBarItem
Microsoft.Maui (19)
Core\IMenuBar.cs (1)
9
public interface IMenuBar : IList<
IMenuBarItem
>, IElement
Handlers\MenuBar\IMenuBarHandler.cs (3)
17
void Add(
IMenuBarItem
view);
18
void Remove(
IMenuBarItem
view);
20
void Insert(int index,
IMenuBarItem
view);
Handlers\MenuBar\MenuBarHandler.cs (1)
81
foreach (
var
item in VirtualView)
Handlers\MenuBar\MenuBarHandler.Standard.cs (3)
12
public void Add(
IMenuBarItem
view)
16
public void Remove(
IMenuBarItem
view)
24
public void Insert(int index,
IMenuBarItem
view)
Handlers\MenuBar\MenuBarHandlerUpdate.cs (1)
8
public record MenuBarHandlerUpdate(int Index,
IMenuBarItem
MenuBarItem);
Handlers\MenuBarItem\IMenuBarItemHandler.cs (1)
22
new
IMenuBarItem
VirtualView { get; }
Handlers\MenuBarItem\MenuBarItemHandler.cs (8)
21
public static IPropertyMapper<
IMenuBarItem
, IMenuBarItemHandler> Mapper = new PropertyMapper<
IMenuBarItem
, IMenuBarItemHandler>(ElementMapper)
31
public static CommandMapper<
IMenuBarItem
, IMenuBarItemHandler> CommandMapper = new(ElementCommandMapper)
53
public static void MapAdd(IMenuBarItemHandler handler,
IMenuBarItem
layout, object? arg)
61
public static void MapRemove(IMenuBarItemHandler handler,
IMenuBarItem
layout, object? arg)
69
public static void MapInsert(IMenuBarItemHandler handler,
IMenuBarItem
layout, object? arg)
77
public static void MapClear(IMenuBarItemHandler handler,
IMenuBarItem
layout, object? arg)
84
IMenuBarItem
IMenuBarItemHandler.VirtualView => VirtualView;
Handlers\MenuBarItem\MenuBarItemHandler.Standard.cs (1)
5
public partial class MenuBarItemHandler : ElementHandler<
IMenuBarItem
, object>, IMenuBarItemHandler
Microsoft.Maui.Controls (12)
Menu\MenuBar.cs (12)
21
readonly ObservableCollection<
IMenuBarItem
> _menus = new ObservableCollection<
IMenuBarItem
>();
23
public
IMenuBarItem
this[int index]
37
public void Add(
IMenuBarItem
item)
68
public bool Contains(
IMenuBarItem
item)
73
public void CopyTo(
IMenuBarItem
[] array, int arrayIndex)
78
public IEnumerator<
IMenuBarItem
> GetEnumerator()
83
public int IndexOf(
IMenuBarItem
item)
88
public void Insert(int index,
IMenuBarItem
item)
94
public bool Remove(
IMenuBarItem
item)
108
var
item = _menus[index];
125
void NotifyHandler(string action, int index,
IMenuBarItem
view)