protected override void InitializeMainWindow() { base.InitializeMainWindow(); var m = new Menu(); m.Items.Add(new MenuItem { Header = "Test" }); MenuHostViewModel.Menu = m; ToolBarHostViewModel.AddToolBar(new ToolBar { IdentifierName = "Test" }, true, Dock.Top); }
public CustomizeDialog(ToolBarHostViewModel toolBarViewModel) { InitializeComponent(); _toolBarHostViewModel = toolBarViewModel; Loaded += CustomizeDialog_Loaded; }
public ToolBarHostControl() { InitializeComponent(); Instance = this; DataContext = new ToolBarHostViewModel(this); }