private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { var pre = Selected; Selected = (RouteTag)e.AddedItems[0]; ContentFrame.NavigateToRoute(Selected.Type, TransitionHelper.DecideSlideAnimation(pre, Selected)); }
private void NavView_ItemInvoked(NavigationView _, NavigationViewItemInvokedEventArgs args) { var tag = (RouteType)args.InvokedItemContainer.Tag; var pre = Selected; Selected = ApplicationRouter.GetRouteTag(tag); SelectedContainer = args.InvokedItemContainer; ContentFrame.NavigateToRoute(tag, TransitionHelper.DecideSlideAnimation(pre, Selected)); }