[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Collapse]Layout Management
   [Collapse]Dock Windows
    [Expand]Getting Started
    [Expand]Dock Items
    [Expand]Layout Items
    [Expand]Runtime Features
      Saving and Restoring the Layout of Dock Panels and Controls
      Managing Dock Panels in Code
      MVVM Support - Building Dock UI
      Move Panels Between DockLayoutManager Instances
      WPF and WinForms Interoperation Limitations
   [Expand]Tile and Layout
   [Expand]Tab Control
    Book Control
    Workspace Manager
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

WPF and WinForms Interoperation Limitations

WinForms controls can be embedded into WPF applications, as described in WPF and Win32 Interoperation Overview.

However, there are two major limitations to the WPF and WinForms interoperation that prevent WinForms controls from being used with DXDocking:

  • WinForms controls, when embedded in WPF applications, are always displayed on top of WPF controls.

    Here is an example of this scenario. Assume that a DXDocking dock panel exists with a WinForms control within it. All other panels, when moved or placed over this panel, will be hidden behind the WinForms control.

  • WinForms controls cannot be displayed in WPF windows that have the AllowsTransparency property set to true.

    All dock panels have the AllowsTransparency property set to true. This ensures correct display of the panel's borders and shadows. However, WinForms controls are hidden when they are displayed within windows that support transparency.

To overcome possible issues with auto-hide panels and floating panels overlapped by WinForms controls, set the DockLayoutManager.EnableWin32Compatibility property to true.

This action will set the AllowsTransparency property for all floating WPF windows to false and force auto-hide panels to be drawn over a WindowsFormsHost object. The DockLayoutManager.EnableWin32Compatibility property is in effect for floating panels only in the FloatingMode.Desktop mode.

Expanded See Also

Is this topic helpful?​​​​​​​