コード例 #1
0
        public void NovigateTo(Frame frame, Page page)
        {
            Frame old = ContentFrame;

            ContentFrame = frame;
            NavigateTo(page);
            ContentFrame = old;
        }
コード例 #2
0
        public void NavigateTo(Page page)
        {
            switch (page)
            {
            case Page.Home:
                ContentFrame.Navigate(typeof(HomeView));
                break;

            case Page.History:
                ContentFrame.Navigate(typeof(HistoryView));
                break;

            case Page.SignIn:
                ContentFrame.Navigate(typeof(LoginView));
                break;
            }
        }