Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Premium
Register
Login
Get all Windows in a WPF Application
WhatsApp
XAML Designer
May 28 2012
22.8
k
0
Resource
0
The Windows property of an Application represents all Window instances in an Application.
The following code snippet gets all windows and reads their titles.
foreach
( Window window
in
Application.Current.Windows )
{
string str = window.Title;
}