private void FrameOnNavigationStopped(object sender, NavigationEventArgs e) { var vm = (ShellViewModel)this.DataContext; vm.UpdateActiveMenuItem(lastMenuItem); currentMenuItem = lastMenuItem; }
private void HandleClick(object sender, ItemClickEventArgs e) { lastMenuItem = currentMenuItem; currentMenuItem = e.ClickedItem as ViewModels.MenuItem; if (currentMenuItem != null && currentMenuItem.IsNavigation) { Navigation.Navigate(currentMenuItem.NavDestination); } }