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); }
public App() { var view = new MainWindow(); view.DataContext = new MainViewModel(); view.Show(); }