Keep ToolWindow Open Even If Parent Controller Is Unloaded

Docking/MDI for WPF Forum

Posted 2 years ago by JP Garza
Version: 19.1.0685

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: 

[Modified 2 years ago]

Comments (2)

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


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 2 years ago by JP Garza

That did it. Thanks much!

The latest build of this product (v22.1.4) was released 27 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.