WPF-12:遍历目前程序所有窗口
WPF-12:遍历当前程序所有窗口
实现很简单
foreach (Window window in Application.Current.Windows)就可以了。