コード例 #1
0
        private void FrameOnNavigationStopped(object sender, NavigationEventArgs e)
        {
            var vm = (ShellViewModel)this.DataContext;

            vm.UpdateActiveMenuItem(lastMenuItem);
            currentMenuItem = lastMenuItem;
        }
コード例 #2
0
        private void HandleClick(object sender, ItemClickEventArgs e)
        {
            lastMenuItem    = currentMenuItem;
            currentMenuItem = e.ClickedItem as ViewModels.MenuItem;

            if (currentMenuItem != null && currentMenuItem.IsNavigation)
            {
                Navigation.Navigate(currentMenuItem.NavDestination);
            }
        }