Dhanya Ullas
Dhanya Ullas

Reputation: 149

Showing all open windows in main page WPF

We have an application developed in WPF. i wanted to implement one functionality here. From main page, Main page has quick links to all child windows. if i open 20 windows, i wanted to see all the opened windows listed on mainpage. My main page is blank now so i can show in any way possible. Does WPF has this functionality??? please help

Upvotes: 0

Views: 664

Answers (2)

Martin Hennings
Martin Hennings

Reputation: 16846

Keep them all in an ObservableCollection<Window>, then use a ListView or such to display them. Style your ItemTemplate at wish.

Upvotes: 1

HCL
HCL

Reputation: 36775

Look at Application.Current.Windows. You can enumerate and show them in your main-window.

Upvotes: 1

Related Questions