[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
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [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
    [Collapse]Miscellaneous
      Saving and Restoring the Layout of Dock Panels and Controls
      Managing Dock Panels in Code
      MVVM Support - Building Dock UI
      WPF and WinForms Interoperation Limitations
    [Expand]Examples
   [Expand]Tile and Layout
   [Expand]Tab Control
   [Expand]Carousel
    Book Control
    Workspace Manager
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [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
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[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 float 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?​​​​​​​