示例#1
0
        public PageThree()
        {
            this.InitializeComponent();
            Debug.WriteLine(string.Format("Creating: {0}", GetType().Name));
            NavigationCacheMode = NavigationCacheMode.Enabled;

            ViewModel = new PageThreeViewModel(NestedNavigationServiceProvider.GetNavigationServiceAndRegisterFrame(FrameTargets.SubFrame, this.SubFrame));
        }
示例#2
0
 public MainPage()
 {
     this.InitializeComponent();
     ViewModel = new MainViewModel(NestedNavigationServiceProvider.GetNavigationServiceAndRegisterFrame(FrameTargets.RootFrame, RootFrame));
 }