using System; using System.Windows; using System.Windows.Input; class MainClass: Application { [STAThread] public static void Main() { MainClass app = new MainClass(); app.Run(); } protected override void OnStartup(StartupEventArgs args) { Window winMain = new Window(); winMain.Title = "Main Window"; winMain.Show(); for (int i = 0; i < 2; i++) { Window win = new Window(); win.Title = "Extra Window No. " + (i + 1); win.Show(); } } }