Dock guides not appearing when hosting WPF content in Win32

Docking/MDI for WPF Forum

Posted 7 years ago by Jean-Philippe Lalande
Version: 17.2.0662
Platform: .NET 4.7
Environment: Windows 10 (64-bit)


We have WPF content that can be hosted inside a Win32 window by using the following technique:

Our WPF content has a DockSite and when using this content from a WPF window (our tool has a standalone WPF version, but can be embedded in other Win32 applications as a plugin), everything is fine and tool windows defined in the content can be put in floating mode and dock guides appear correctly to dock them. However, when hosted inside a Win32, we can make tool windows in floating mode, but then, dock guides don't appear and the only option we have is to right-click on the title bar and select "Dock" to put back the tool window where it was before. I already took a look at the "Interop Compatibility" documentation section but it doesn't work and it seems to be for when hosting Win32 content in WPF instead.

Is there any solution to make it work properly?

Thank you!

Comments (1)

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


Unfortunately embedding our WPF Docking/MDI controls in a Win32 app isn't a scenario we test for.  We do support using interop Win32 controls in the docking windows, per that documentation topic you saw. 

You could try setting DockSite.UseHostedPopup to false and see if that makes any difference.  I believe that affects how dock guides get hosted/rendered, and puts them in their own window.

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.