public PageThree() { this.InitializeComponent(); Debug.WriteLine(string.Format("Creating: {0}", GetType().Name)); NavigationCacheMode = NavigationCacheMode.Enabled; ViewModel = new PageThreeViewModel(NestedNavigationServiceProvider.GetNavigationServiceAndRegisterFrame(FrameTargets.SubFrame, this.SubFrame)); }
public MainPage() { this.InitializeComponent(); ViewModel = new MainViewModel(NestedNavigationServiceProvider.GetNavigationServiceAndRegisterFrame(FrameTargets.RootFrame, RootFrame)); }