public App() { InitializeComponent(); MainWindow = new MainWindow(); trayVm = new TrayIconViewModel(this); MainWindow.Show(); }