Articles in this section
Category / Section

How to host the Windows Forms control in WPF DockingManager?

4 mins read

While adding Windows Forms control to the WPF DockingManager, you may face some issues that can be resolved as follows.

UseInteropCompatibilityMode

Set the UseInteropCompatibilityMode property as True to use the WindowsForms control in DockingManager.

MainWindow.xaml

<syncfusion:DockingManager UseInteropCompatibilityMode="True">           
   <WebBrowser x:Name="webBrowser"/></syncfusion:DockingManager>

MainWindow.xaml.cs

webBrowser.Navigate(new Uri("http://syncfusion.com"));

The most common issues with the hosted WindowsForms control in DockingManager are:

1. AutoHidden window controls are overlapped by Docked Window controls.

2. Resizing the AutoHidden window (width wise) is difficult.

3. FloatWindowBorder is thickened in Office2013 theme.

These issues can be resolved by setting the following properties:

UsePopupAutoHidePreview

Set this property to True to resolve the overlapping and resizing issues in the AutoHidden window.

UseNativeFloatWindow

Set this property to True to resolve the border thickening issue in the Float window.


Conclusion

I hope you enjoyed learning about how to host the Windows Forms control in WPF DockingManager.

You can refer to our WPF DockingManager feature tour page to know about its other groundbreaking feature representations and documentation. You can also explore our WPF DockingManage example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied