예제 #1
0
        public MenuItemGroup()
        {
            this.OverrideStyleKey <MenuItemGroup>();

            ItemCollection     = new MenuItemCollection(this);
            MenuItemsPresenter = new MenuItemsPresenter
            {
                Items             = ItemCollection,
                ActualOrientation = Orientation.Vertical
            };
        }
예제 #2
0
파일: MenuItem.cs 프로젝트: Egaros/lib
        public MenuItem()
        {
            this.OverrideStyleKey <MenuItem>();

            ItemCollection = new MenuItemCollection(this);

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

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