protected override void OnStartup(StartupEventArgs args) { base.OnStartup(args); MyWindow win = new MyWindow(); win.Show(); }