コード例 #1
0
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var pre = Selected;

            Selected = (RouteTag)e.AddedItems[0];
            ContentFrame.NavigateToRoute(Selected.Type, TransitionHelper.DecideSlideAnimation(pre, Selected));
        }
コード例 #2
0
        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));
        }