How to load the content of a ToolWindow without activating?

Docking/MDI for WPF Forum

Posted 14 years ago by Jörg Hubacher
Version: 10.1.0523
I have a ToolWindow that contains a TreeView control which is maintaining my selection state. If I open the ToolWindow once the TreeView is loaded and everything's fine.

I tried to activate and than deactivate it again. But the user will see the result.
Any idea how to hide this action?


Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Jörg,

The ToolWindows and ToolWindowContainers follow the model used by the native WPF TabItem and TabControl. This means that they only load the content of the "selected" tab (or ToolWindow/TabItem). If you switch tabs, the content will be swapped out.

You may need to listen to the Loaded event of the DockSite and initialize your selection state there, as the Loaded event of the TreeView will only be loaded when the user clicks it's associated tab.

Actipro Software Support

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.