开发者

Showing all open windows in main page WPF

开发者 https://www.devze.com 2023-01-16 04:39 出处:网络
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 ope

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消