private void Application_Startup(object sender, StartupEventArgs e) { MainWindow mainWindow = new MainWindow(); MainViewModel = new ViewModels.ViewModel(mainWindow.dockingManager); mainWindow.DataContext = MainViewModel; this.MainWindow = mainWindow; mainWindow.Show(); }
private void Application_Startup(object sender, StartupEventArgs e) { String appTheme = "Light"; //String appTheme = "Dark"; this.Resources.MergedDictionaries[0].Source = new Uri($"/Styles/Themes/{appTheme}.xaml", UriKind.Relative); MainWindow mainWindow = new MainWindow(); MainViewModel = new ViewModels.ViewModel(mainWindow.dockingManager); mainWindow.DataContext = MainViewModel; this.MainWindow = mainWindow; mainWindow.Show(); }