Monday, December 13, 2010

WPF make a window on top of main window

One way is to set the Topmost property, which is not the best way,
another is to set the Owner property,

ProjectWizardDialog pwd = new ProjectWizardDialog();
                pwd.Owner = Window.GetWindow(this);//steveny: Wizard dialog should always be at the toppest
                pwd.ShowDialog();

No comments:

Post a Comment