Exemplo n.º 1
0
        private IAvnAppMenu CreateSubmenu(ICollection <NativeMenuItemBase> children)
        {
            var menu = _factory.CreateMenu();

            SetChildren(menu, children);

            return(menu);
        }
Exemplo n.º 2
0
        public static __MicroComIAvnMenuProxy Create(IAvaloniaNativeFactory factory)
        {
            var events = new MenuEvents();

            var menu = (__MicroComIAvnMenuProxy)factory.CreateMenu(events);

            events.Initialise(menu);

            menu._events = events;

            return menu;
        }
Exemplo n.º 3
0
        public static IAvnMenu Create(IAvaloniaNativeFactory factory)
        {
            var events = new MenuEvents();

            var menu = factory.CreateMenu(events);

            events.Initialise(menu);

            menu._events = events;

            return(menu);
        }