Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 侧菜单xaml导航错误windows phone 8_C#_Xaml_Windows Phone 8 - Fatal编程技术网

C# 侧菜单xaml导航错误windows phone 8

C# 侧菜单xaml导航错误windows phone 8,c#,xaml,windows-phone-8,C#,Xaml,Windows Phone 8,我目前正在尝试开发一个带有侧菜单的WindowsPhone8应用程序。我已经设法加载了2个不同的xaml页面(menuitems.xaml和mainpage.xaml)。所以这里的问题是,每当我试图点击菜单时,它会给我一个错误,如下所示:- System.Windows.ni.dll!MS.Internal.Error.CallApplicationEHandler(System.Exception e)未知 System.Windows.ni.dll!MS.Internal.Error.IsU

我目前正在尝试开发一个带有侧菜单的WindowsPhone8应用程序。我已经设法加载了2个不同的xaml页面(menuitems.xaml和mainpage.xaml)。所以这里的问题是,每当我试图点击菜单时,它会给我一个错误,如下所示:-

System.Windows.ni.dll!MS.Internal.Error.CallApplicationEHandler(System.Exception e)未知 System.Windows.ni.dll!MS.Internal.Error.IsUnrecoverableUserException(System.Exception ex,out uint xresultValue)未知 System.Windows.ni.dll!MS.Internal.JOLTELPER.FireEvent(System.IntPtr unmanagedObj、System.IntPtr unmanagedObjArgs、int argsTypeIndex、int ACTUARLAGSTYPEINDEX、string eventName)未知

我已经在这里上传了我的源代码。我真的希望我能得到一些关于如何完成这件事的建议。谢谢


我猜您的导航服务没有注册导航到
MenuItems()
,为了导航,请使用此选项

(Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/Page1.xaml", UriKind.Relative));

考虑-如果您使用
自定义用户控件
来实现幻灯片菜单

欢迎使用堆栈溢出,将更加容易。为了改进您的问题,您应该解释您正在使用的控件。侧菜单不是常见的控件,是吗?接下来,你应该提供你认为导致错误的代码片段,而不是发布一个包含所有代码的zip。对不起,我的错。下次我会这样做的。谢谢你的建议,因为我在这方面还是新手。谢谢你的帮助!非常感谢。设法使它工作起来。感谢您对自定义用户控件的推荐。一旦我完成了我的这个学校项目,我会首先调查:)