抽屉导航在Windows Phone 8.1 [RT]中无法正常工作

时间:2015-10-03 07:12:49

标签: xaml navigation windows-phone-8.1 drawerlayout

我正在处理来自msdn的抽屉布局代码 我的应用程序中有六页,所有页面都包含抽屉,所以我必须在每页初始化抽屉

 public page1() 
 {
    DrawerLayout.InitializeDrawerLayout();
    DrawerClass drawer = new DrawerClass();
    //contains drawer data , text and Image
    ListMenuItemsDrawer.ItemsSource = drawer.InitlizeDrawerData();
    string picUri = Constant.PROFILEIMAGE + Constant.localSettings.Values["profile_image"].ToString();
    imgProfilePic.ImageSource = new BitmapImage(new Uri(picUri, UriKind.RelativeOrAbsolute));
    tbDrawerMemberName.Text = Constant.localSettings.Values["name"].ToString();
 }

同样在page2,page3 ...承包商,当我从page1导航到page2和page2导航到page1(相同的2或3次)应用程序退出(不崩溃)has exited with code 0 (0x0) 我在诺基亚Lunia 520中测试了我的代码

0 个答案:

没有答案