zoukankan      html  css  js  c++  java
  • 跳过一个页面转向

    已知: Page1  Page2  Page3

    question:  Page1——>Page2   then   Page2——(跳过Page1)——>Page3  How???

    answer: 

    Class Page1:PhoneApplicationPage

    {

      private void NavigateMethod()

      {

        NavigationService.Navigate(new Uri("/Page2.xaml",Urikind.Relactive));

      }

    }

    Class Page2:PhoneApplicationPage

    {

      private void NavigateMethod()

      {

        NavigationService.Navigated+=Navigation.NavigatedEventHandler(NavigationService_Navigated);

        NavigationService.GoBack();

      }

     void NavigationService_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e) 

         {

       NavigationService.Navigate(new Uri("/Page3.xaml",Urikind.Relactive));

      }

    }

    Class Page1:PhoneApplicationPage

    {

      private void NavigateMethod()

      {

        NavigationService.GoBack();

      }

    }

  • 相关阅读:
    SQL server查询笔记
    thinkphp ajax无刷新上传头像
    JSTL
    EL表达式
    jBox 弹框内容交互
    网页可读不可写
    readonly与disable的区别
    vuex 的使用
    页面向上滚动
    按照数组中的对象属性进行排序
  • 原文地址:https://www.cnblogs.com/mokey/p/2306065.html
Copyright © 2011-2022 走看看