public MenuItemGroup() { this.OverrideStyleKey <MenuItemGroup>(); ItemCollection = new MenuItemCollection(this); MenuItemsPresenter = new MenuItemsPresenter { Items = ItemCollection, ActualOrientation = Orientation.Vertical }; }
public MenuItem() { this.OverrideStyleKey <MenuItem>(); ItemCollection = new MenuItemCollection(this); MenuItemsPresenter = new MenuItemsPresenter { Items = ItemCollection, ActualOrientation = Orientation.Vertical }; _commandController = new CommandController <MenuItem>(this); }