public StartUpWindow(MainWindowViewModel vm) { InitializeComponent(); this.vm = vm; DataContext = vm; contentPresenter.Content = new DatabaseIntroduction() { DataContext = vm }; canClose = false; }
public MainWindow() { logger.Debug("Application started"); sw = new Core.Performance.Stopwatch("Application loaded after "); sw.Start(); InitializeComponent(); MainWindowViewModel = new UI.ViewModel.MainWindowViewModel(this); DataContext = MainWindowViewModel; }