Keep ToolWindow Open Even If Parent Controller Is Unloaded

Docking/MDI for WPF Forum

Posted 4 years ago by JP Garza
Version: 19.1.0685
Avatar

Is there anyway to maintain a ToolWindow open indefinitely? I don't want the ToolWindow to close unless the user clicks the close button or dock button. 

In my case I have one (of many) active view at all times, like this:

<ContentControl Content="{Binding ActiveViewModel}"/>

When my ActiveViewModel == MyDockSiteViewModel, I display my docksite view where I can float my single ToolView. If my ToolView is floating I would like it to stay open even if my ActiveViewModel changes.

Is there any way to do this or would you recommend me to do this a different way?

I was thinking I capture the UserControl unload event and prevent my ToolWindow from closing or something.

See here:
https://i.imgur.com/L4f70Oi.png 

[Modified 4 years ago]

Comments (2)

Answer - Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We have a DockSite.CanFloatingDockHostsHideOnDockSiteUnload property that you can try setting to false to see if that helps this scenario.  Please let us know the results.


Actipro Software Support

Posted 4 years ago by JP Garza
Avatar

That did it. Thanks much!

The latest build of this product (v24.1.3) 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.