Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Windows.Forms.Integration Namespace

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

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.

  ClassDescription
Public classChildChangedEventArgs Provides data for the WindowsFormsHost..::.ChildChanged and ElementHost..::.ChildChanged events.
Public classElementHost A Windows Forms control that can be used to host a Windows Presentation Foundation (WPF) element. 
Public classIntegrationExceptionEventArgs Provides a base class for EventArgs classes which support optionally raising exceptions.
Public classLayoutExceptionEventArgs Provides data for the LayoutError event.
Public classPropertyMap Provides a way to translate property values between Windows Forms controls and Windows Presentation Foundation (WPF) elements. 
Public classPropertyMappingExceptionEventArgs Provides data for the PropertyMappingError event.
Public classWindowsFormsHost An element that allows you to host a Windows Forms control on a WPF page.
  DelegateDescription
Public delegatePropertyTranslator Provides a translation function for a mapped property of the host control.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker