Example #1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     var vm = new TestViewModel();
     vm.Load();
     var view = new MainWindow { DataContext = vm };
     view.Show();
 }
Example #2
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     var vm = new TestViewModel();
     vm.Load();
     this.RootVisual = new MainPage { DataContext = vm };
 }