_ Windows Phone UI.txt 822 B

12345678910111213141516171819202122
  1. The steps to get this WindowsPhone UI working are:
  2. 1. Add a reference to your Core PCL project
  3. 2. Change App.Xaml.cs so that it creates a 'new Setup(RootFrame)' during its constructor
  4. var setup = new Setup(RootFrame);
  5. setup.Initialize();
  6. 3. Change App.Xaml.cs so that it intercepts the first navigation:
  7. private void Application_Launching(object sender, LaunchingEventArgs e)
  8. {
  9. RootFrame.Navigating += RootFrameOnNavigating;
  10. }
  11. private void RootFrameOnNavigating(object sender, NavigatingCancelEventArgs args)
  12. {
  13. args.Cancel = true;
  14. RootFrame.Navigating -= RootFrameOnNavigating;
  15. RootFrame.Dispatcher.BeginInvoke(() => { Cirrious.CrossCore.Mvx.Resolve<Cirrious.MvvmCross.ViewModels.IMvxAppStart>().Start(); });
  16. }