TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get all Windows in a WPF Application
XAML Designer
May 28 2012
Resource
0
0
30.7
k
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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;
}