简体   繁体   中英

Side Menu xaml Navigation Error windows phone 8

I'm currently trying to develop a windows phone 8 app that has a Side Menu. I've managed to load 2 different xaml pages (menuitems.xaml & mainpage.xaml). So the problem here is that, whenever I try to click on the menu, it gives me an error as follows :-

System.Windows.ni.dll!MS.Internal.Error.CallApplicationUEHandler(System.Exception e) Unknown System.Windows.ni.dll!MS.Internal.Error.IsNonRecoverableUserException(System.Exception ex, out uint xresultValue) Unknown System.Windows.ni.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj, System.IntPtr unmanagedObjArgs, int argsTypeIndex, int actualArgsTypeIndex, string eventName) Unknown

I've uploaded my source codes here. I do hope that I could get some advice on how to get it done. Thanks!

https://skydrive.live.com/redir?resid=24BED6E1EB5E271A!110&authkey=!AFcidu4XGUa44-0&ithint=file%2c.zip

My guess is that your navigation services doesn't register navigation to MenuItems() , in order to navigate use this

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

For consideration - it will be much easier if you use Custom User Control to implement Slide Menu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM