How can I loop through all open windows and dosomething on each window.
I thought about a foreach within a dispatcher but I do not know how to access the list of open windows. I've put the foreach attempt below.
foreach(Ninjatrader.Gui.Chart.Chart win in XXXXX)
{
win.Activate();
//do something
}
I've tried "in System.Windows.Window" but this does not work.
Please can you advise how to do this and how to access the list of open windows.
Thanks
Comment