Interaction logic for MainWindow.xaml
Inheritance: FirstFloor.ModernUI.Windows.Controls.ModernWindow
Example #1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     //var model = Model.Create<MainModel>();
     //var view = new MainView(new MainWindow());
     //var controller = new MainController();
     var mainWindow = new MainWindow();
     var mvc = MainController.Mvc(mainWindow);
     this.RootVisual = mainWindow;
     mvc.Activate();
     //Mvc.activate(model, view, controller);
 }
Example #2
0
 public App()
 {
     var view = new MainWindow();
     view.DataContext = new MainViewModel();
     view.Show();
 }