Unpinned RadPane with WindowsFormsHost Hides on Click
Environment
Product | RadDocking for WPF |
Version | 2024.3.821 |
Description
Unpinned RadPane elements with HwndHost (like WinFormsHost) content auto-hide on click insde the pane (over the HwndHost area).
Cause
The issue occurs because of the interoperation between the WinForms and WPF technologies and their corresponding regions ("airspaces"). Clicking in the WinFormsHost content, steals the mouse from the WPF application, which triggers an event chain that closes the pane.
Solution
To prevent this, change the FlyoutBehavior property of RadDocking from its default HoverFlyoutBehavior to ClickFlyoutBehavior.
<telerik:RadDocking.FlyoutBehavior>
<telerik:ClickFlyoutBehavior/>
</telerik:RadDocking.FlyoutBehavior>