System.Windows.Forms.Integration
TOC
Collapse the table of content
Expand the table of content

System.Windows.Forms.Integration Namespace

 

Contains classes that support interoperation of Windows Forms and WPF controls.

ClassDescription
System_CAPS_pubclassChildChangedEventArgs

Provides data for the WindowsFormsHost.ChildChanged and ElementHost.ChildChanged events.

System_CAPS_pubclassElementHost

A Windows Forms control that can be used to host a Windows Presentation Foundation (WPF) element. 

System_CAPS_pubclassIntegrationExceptionEventArgs

Provides a base class for EventArgs classes which support optionally raising exceptions.

System_CAPS_pubclassLayoutExceptionEventArgs

Provides data for the LayoutError event.

System_CAPS_pubclassPropertyMap

Provides a way to translate property values between Windows Forms controls and Windows Presentation Foundation (WPF) elements.

System_CAPS_pubclassPropertyMappingExceptionEventArgs

Provides data for the PropertyMappingError event.

System_CAPS_pubclassWindowsFormsHost

An element that allows you to host a Windows Forms control on a WPF page.

DelegateDescription
System_CAPS_pubdelegatePropertyTranslator

Provides a translation function for a mapped property of the host control.

The System.Windows.Forms.Integration namespace contains classes that enable interoperation between the Windows Forms and WPF technologies. When you use System.Windows.Forms.Integration classes, you can host Windows Forms controls on WPF pages, and WPF elements in Windows Forms-based applications.

The two key classes that implement interoperation capabilities are WindowsFormsHost and ElementHost. Which class you use depends on your control implementation:

  • Use the WindowsFormsHost class when you must use a Windows Forms control on a WPF page.

  • Use the ElementHost class when you must use a WPF element in a Windows Forms-based application.

Return to top
Show:
© 2016 Microsoft