private IAvnAppMenu CreateSubmenu(ICollection <NativeMenuItemBase> children) { var menu = _factory.CreateMenu(); SetChildren(menu, children); return(menu); }
public static __MicroComIAvnMenuProxy Create(IAvaloniaNativeFactory factory) { var events = new MenuEvents(); var menu = (__MicroComIAvnMenuProxy)factory.CreateMenu(events); events.Initialise(menu); menu._events = events; return menu; }
public static IAvnMenu Create(IAvaloniaNativeFactory factory) { var events = new MenuEvents(); var menu = factory.CreateMenu(events); events.Initialise(menu); menu._events = events; return(menu); }