我正在处理来自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中测试了我的代码