Visible windows

Docking/MDI for WPF Forum

Posted 16 years ago by Jeremy ALLES - Grenoble, France
Version: 4.5.0471

I would like to know how can I retrieve a list of all DocumentWindow that are currently visible in a DockSite. By Visible, I mean displayed on the screen and not necessarly activated.


Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Jeremy,

The DockSite.Documents property will give you a list of all currently-open documents.

If you are in standard MDI, all are visible (although some may be minimized). You can use StandardMdiHost.GetStandardMdiWindowState and pass it a window to see its current state.

If you are in tabbed MDI, the currently selected window in any container should have DockingWindow.IsSelected as true.

Actipro Software Support

Posted 16 years ago by Jeremy ALLES - Grenoble, France
Perfect, I just tried and it worked fine.

Thank you :)
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.