Esempio n. 1
0
        public MenuItemGroup()
        {
            this.OverrideStyleKey <MenuItemGroup>();

            ItemCollection     = new MenuItemCollection(this);
            MenuItemsPresenter = new MenuItemsPresenter
            {
                Items             = ItemCollection,
                ActualOrientation = Orientation.Vertical
            };
        }
Esempio n. 2
0
        public MenuItem()
        {
            this.OverrideStyleKey <MenuItem>();

            ItemCollection = new MenuItemCollection(this);

            MenuItemsPresenter = new MenuItemsPresenter
            {
                Items             = ItemCollection,
                ActualOrientation = Orientation.Vertical
            };

            _commandController = new CommandController <MenuItem>(this);
        }