user7899755
user7899755

Reputation:

C# - WPF modal window

Is it possible to switch or activate other windows when modal window is open?

Window1 window = new Window1();
window.ShowDialog();

Upvotes: 0

Views: 1777

Answers (2)

Nikhil Kumar
Nikhil Kumar

Reputation: 117

I don't think it's possible to set the control back to parent form from a modal window(That's the point of using Modal Window). You can use non modal window.

window.Show();

If you use window.Activate(); it will not show the form.

Upvotes: 1

Alex
Alex

Reputation: 294

If I understood you correctly you can do something like the following:

Window1 window = new Window1();    
window.Activate(); 

This will activate window and bring it to the foreground.

Upvotes: 1

Related Questions