tags:

views:

92

answers:

1

In WinForms you can get a list of all open windows using Application.OpenForms? Is there a WPF version of that?

+2  A: 

You're looking for Application.Windows.

GraemeF
Ok, follow up question. Why is Application.Windows.Current null?
Jonathan Allen
I would imagine that there is no Application object for the AppDomain you're running in. Are you sure you have started one?
GraemeF
I wasn't aware I needed to. I figured one would be automatically created when a WPF form or control was loaded.
Jonathan Allen