Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Register
Login
Get all Windows in a WPF Application
WhatsApp
XAML Designer
12y
22.9
k
0
5
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;
}