Example #1
0
        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;
 }
Example #3
0
 public ToolBarHostControl()
 {
     InitializeComponent();
     Instance    = this;
     DataContext = new ToolBarHostViewModel(this);
 }