Use following code to create Backstage application menu for the Ribbon control included with DotNetBar for WPF:

 

C#:

Backstage backstage = new Backstage();
ButtonDropDown btn = new ButtonDropDown();
btn.Header = "Save";
btn.ImageSource = "images/Save.png";
backstage.Items.Add(btn);
 
btn = new ButtonDropDown();
btn.Header = "Save As";
backstage.Items.Add(btn);
 
BackstageTab tab = new BackstageTab();
tab.Header = "New";
tab.PanelBackground = eBackstagePanelBackgroundImage.Green;
backstage.Items.Add(tab);
 
DockPanel panel = new DockPanel();
Label label = new Label();
label.Content = "Label Content";
panel.Children.Add(label);
tab.Content = panel; // Set tab content
 
AppMenu.BackstageTab = backstage;

VB:

Backstage backstage = new Backstage();
ButtonDropDown btn = new ButtonDropDown();
btn.Header = "Save";
btn.ImageSource = "images/Save.png";
backstage.Items.Add(btn);
 
btn = new ButtonDropDown();
btn.Header = "Save As";
backstage.Items.Add(btn);
 
BackstageTab tab = new BackstageTab();
tab.Header = "New";
tab.PanelBackground = eBackstagePanelBackgroundImage.Green;
backstage.Items.Add(tab);
 
DockPanel panel = new DockPanel();
Label label = new Label();
label.Content = "Label Content";
panel.Children.Add(label);
tab.Content = panel; // Set tab content
 
AppMenu.BackstageTab = backstage;

AppMenu in this case represents an instance of ApplicationMenu which has been assigned to the Ribbon.

Related posts:

  1. How to build Office 2010 style Backstage application menu with DotNetBar for WPF
  2. How to Create WPF Navigation Pane Items Using Code
  3. How to Access and Change WPF-Ribbon Window Title Text Alignment
  4. How To Start Using Wpf-Ribbon Control
  5. How to implement Live Preview using DotNetBar for WPF