public InstallerMainWindow(InstallerMainWindowViewModel viewModel, Engine engine) { this.DataContext = viewModel; this.Loaded += (sender, e) => engine.CloseSplashScreen(); this.Closed += (sender, e) => this.Dispatcher.InvokeShutdown(); // shutdown dispatcher when the window is closed. this.InitializeComponent(); }
public InstallerMainWindow(InstallerMainWindowViewModel viewModel, Engine engine) { this.DataContext = viewModel; this.Loaded += (sender, e) => engine.CloseSplashScreen(); this.Closed += (sender, e) => this.Dispatcher.InvokeShutdown(); // shutdown dispatcher when the window is closed. this.InitializeComponent(); }