public MenuItem(string displayText, MenuItemName name) { if (displayText == null) throw new ArgumentNullException("displayText"); DisplayText = displayText; Name = name; Command = new DisabledCommand(); }
protected ToolWindowBase() { CanCloseWindow = true; CanHide = false; AutoHideMinHeight = 100; DockAsDocumentCommand = new DisabledCommand(); NotifyOfPropertyChange(() => DockAsDocumentCommand); ViewAttached += ToolWindowBase_ViewAttached; }
public ToolWindowBase() { CanCloseWindow = true; CanHide = false; AutoHideMinHeight = 100; DefaultDockingPane = "DockBottom"; DockAsDocumentCommand = new DisabledCommand(); NotifyOfPropertyChange(() => DockAsDocumentCommand); ViewAttached += ToolWindowBase_ViewAttached; }