How can I resolve the following problem?
- Run a WPF app, MainWindow is opened in front
New window is shown behind after opening any other application Main window is also disabled then have to press the ALT+Tab to take the new window and close it.
NewWindow newWindow = new NewWindow (); newWindow.ShowDialog();
Set the Owner for your 2. window like this:
I got it correct when I gave like this: