Inheritance: System.Windows.RoutedEventArgs
Exemplo n.º 1
0
        private void HamburgerMenu_ItemClick(object sender, MahApps.Metro.Controls.ItemClickEventArgs e)
        {
            HamburgerMenuIconItem hmi = e.ClickedItem as HamburgerMenuIconItem;

            this.navFrame.Navigate(new Uri(hmi.Tag.ToString(), UriKind.Relative));
            this.HamburgueMenuControl.IsPaneOpen = false;
        }
Exemplo n.º 2
0
        private void MenuControl_ItemClick(object sender, MahApps.Metro.Controls.ItemClickEventArgs e)
        {
            var active = e.ClickedItem as HamburgerMenuGlyphItem;

            if (active != null)
            {
                this.MenuControl.Content = active;
            }
        }
 private void HamburgerMenu_OnItemClick(object sender, ItemClickEventArgs e)
 {
     HamburgerMenuControl.Content = e.ClickedItem;
 }
 private async void HamburgerMenu_OnOptionsItemClick(object sender, ItemClickEventArgs e)
 {
     var menuItem = e.ClickedItem as HamburgerMenuItem;
     await this.TryFindParent<MetroWindow>().ShowMessageAsync("", $"You clicked on {menuItem.Label} button");
 }
Exemplo n.º 5
0
 private void HamburgerMenu_ItemClick(object sender, MahApps.Metro.Controls.ItemClickEventArgs e)
 {
     //var vm = (HamburgerMenuViewModel)this.DataContext;
     ((HamburgerMenu)sender).Content = e.ClickedItem;
 }