private Backstage GetMenu() { BackstageTabControl backstageTabControl = new BackstageTabControl(); backstageTabControl.Items.Add(GetNewMapBackstageTabItem()); backstageTabControl.Items.Add(GetOpenMapBackstageTabItem()); backstageTabControl.Items.Add(GetSaveMapBackstageTabItem()); Backstage menu = new Backstage() { Content = backstageTabControl }; return(menu); }
private Backstage GetMenu() { BackstageTabControl backstageTabControl = new BackstageTabControl(); var command = AppManager.CommandFactory.GetNewProjectCommand(Map); AddBackstageTabItem(command, backstageTabControl.Items); command = AppManager.CommandFactory.GetOpenProjectCommand(Map); AddBackstageTabItem(command, backstageTabControl.Items); command = AppManager.CommandFactory.GetSaveProjectCommand(Map); AddBackstageTabItem(command, backstageTabControl.Items); Backstage menu = new Backstage() { Content = backstageTabControl }; return(menu); }
/// <summary> /// Creates a new instance. /// </summary> public RibbonBackstageAutomationPeer([NotNull] Backstage owner) : base(owner) { this.OwningBackstage = owner; }
public void BackstageLoadedHandler(object sender, RoutedEventArgs e) { backstage = sender as Backstage; }