Esempio n. 1
0
 public ApplicationBarManager()
 {
     this.cardLookupItem  = ApplicationBarHelper.CreateMenuItem(Strings.Menu_CardLookup, this.CardLookup_Click);
     this.blackMarketItem = ApplicationBarHelper.CreateMenuItem(Strings.Menu_BlackMarket, this.BlackMarket_Click);
     this.settingsItem    = ApplicationBarHelper.CreateMenuItem(Strings.Menu_Settings, this.Settings_Click);
     this.aboutItem       = ApplicationBarHelper.CreateMenuItem(Strings.Menu_About, this.About_Click);
     if (Debugger.IsAttached)
     {
         this.debugItem = ApplicationBarHelper.CreateMenuItem("Debug", this.Debug_Click);
     }
 }
Esempio n. 2
0
 public static void AddMenuItem(this IApplicationBar appBar, string text, EventHandler handler)
 {
     appBar.MenuItems.Add(ApplicationBarHelper.CreateMenuItem(text, handler));
 }
Esempio n. 3
0
 public static void AddMenuItem(this CommandBar appBar, string text, RoutedEventHandler handler)
 {
     appBar.SecondaryCommands.Add(ApplicationBarHelper.CreateMenuItem(text, handler));
 }