protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MainWindow window = new MainWindow(); /*Instantiate the main window*/ ServiceInjector.InjectServices(); /*Inject Services into the application*/ ViewModelBase mainViewModel = new MainWindowViewModel(); window.DataContext = mainViewModel; window.Show(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MainWindow window = new MainWindow(); ServiceInjector.InjectServices(); ViewModelBase mainViewModel = new MainWindowViewModel(); window.DataContext = mainViewModel; window.Show(); }