In WinForms you can get a list of all open windows using Application.OpenForms? Is there a WPF version of that?
Asked
Active
Viewed 842 times
1 Answers
3
You're looking for Application.Windows
.

GraemeF
- 11,327
- 5
- 52
- 76
-
1Ok, follow up question. Why is Application.Windows.Current null? – Jonathan Allen Nov 27 '09 at 20:45
-
I would imagine that there is no Application object for the AppDomain you're running in. Are you sure you have started one? – GraemeF Nov 27 '09 at 20:48
-
I wasn't aware I needed to. I figured one would be automatically created when a WPF form or control was loaded. – Jonathan Allen Nov 28 '09 at 19:26