How to load the content of a ToolWindow without activating?

Docking/MDI for WPF Forum

Posted 9 years ago by Jörg Hubacher
Version: 10.1.0523
Avatar
Hi,
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?

Best,
Jörg

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.