public ToolBarPopupButtonItem(View view) : base(view) { _items = new ToolBarItemCollection(Control); Control.Command = new DelegateCommand(OnClickToolBarButton); }
public ToolBarElement(View view) : base(view) { Control.Height = 25; Control.AllowCustomization = false; Control.AllowHotCustomization = false; Control.AllowQuickCustomization = false; Control.ToolbarGlyphSize = GlyphSize.Small; var bar = new Bar { AllowDrop = false, ShowDragWidget = false, AllowCustomizationMenu = false, AllowHide = DefaultBoolean.False, UseWholeRow = DefaultBoolean.False, AllowQuickCustomization = DefaultBoolean.False, DockInfo = { ContainerType = BarContainerType.Top } }; Control.Bars.Add(bar); _items = new ToolBarItemCollection(bar); }