private void ItemSelected(HamburgetMenuItemInvokedEventArgs args) { if (DisplayMode == SplitViewDisplayMode.CompactOverlay || DisplayMode == SplitViewDisplayMode.Overlay) { IsPaneOpen = false; } Navigate(args.InvokedItem); }
private void ItemInvoked(object sender, HamburgetMenuItemInvokedEventArgs e) { if (DisplayMode == SplitViewDisplayMode.CompactOverlay || DisplayMode == SplitViewDisplayMode.Overlay) { IsPaneOpen = false; } Navigate(e.InvokedItem); }
private void HamburgerMenu_ItemInvoked(object sender, HamburgetMenuItemInvokedEventArgs e) { ObservableCollection <string> Items = new ObservableCollection <string>(); for (int i = 0; i < 25; i++) { Items.Add(i.ToString()); } myGrid.ItemsSource = Items; }
private void HamburgerMenu_ItemInvoked(object sender, HamburgetMenuItemInvokedEventArgs e) { switch ((e.InvokedItem as HamburgerMenuGlyphItem).Tag as string) { case "Home": _navigationService.NavigateToHomeAsync(); break; case "Settings": _navigationService.NavigateToSettingsAsync(); break; } }
private async void HamburgerMenuControl_ItemInvoked(object sender, HamburgetMenuItemInvokedEventArgs e) { if (e.IsItemOptions) { var menuItem = e.InvokedItem as HamburgerMenuItem; var dialog = new MessageDialog($"You clicked on {menuItem.Label} button"); await dialog.ShowAsync(); } else if (contentGrid != null) { contentGrid.DataContext = e.InvokedItem; } }