[英]Showing all open windows in main page WPF
We have an application developed in WPF. 我们有一个用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.
如果我打开20个窗口,我想查看主页上列出的所有打开的窗口。 My main page is blank now so i can show in any way possible.
我的主页现在是空白的,因此我可以以任何可能的方式显示。 Does WPF has this functionality???
WPF是否具有此功能??? please help
请帮忙
Look at Application.Current.Windows
. 看一下
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. 将它们全部保留在
ObservableCollection<Window>
,然后使用ListView
等显示它们。 Style your ItemTemplate
at wish. ItemTemplate
样式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.