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); } }
public static void AddMenuItem(this IApplicationBar appBar, string text, EventHandler handler) { appBar.MenuItems.Add(ApplicationBarHelper.CreateMenuItem(text, handler)); }
public static void AddMenuItem(this CommandBar appBar, string text, RoutedEventHandler handler) { appBar.SecondaryCommands.Add(ApplicationBarHelper.CreateMenuItem(text, handler)); }