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 func开发者_开发百科tionality??? please help
Look at Application.Current.Windows
. You can enumerate and show them in your main-window.
Keep them all in an ObservableCollection<Window>
, then use a ListView
or such to display them. Style your ItemTemplate
at wish.
精彩评论