Migration and Interoperability Samples

Updated: February 2009

The following samples show how to use the Windows Forms, Win32, and Windows Presentation Foundation (WPF) technologies together in hybrid applications.

Arranging Windows Forms Controls in Windows Presentation Foundation Sample

Shows how to use WPF layout features to arrange Windows Forms controls in a hybrid application.

Data Binding in Hybrid Applications Sample

Shows how to bind WPF and Windows Forms controls to a common data source and display the results in a master/detail form.

Enabling Visual Styles in a Hybrid Application Sample

Shows how to enable Microsoft Windows XP visual styles on a Windows Forms control hosted in a WPF-based application.

Hosting an ActiveX Control in Windows Presentation Foundation by Using XAML Sample

Shows how to host a Microsoft ActiveX control on a WPFpage by using Extensible Application Markup Language (XAML).

Hosting a Simple Windows Presentation Foundation Control in Windows Forms Sample

Shows how to host a simple WPF control in Windows Forms, receive events and acquire data from the control, and modify the control's properties.

Hosting a Win32 ListBox Control in Windows Presentation Foundation Sample

Shows how to create and host a Win32 ListBox control on a WPF page, and how to send and receive messages.

Hosting a Windows Forms Composite Control in Windows Presentation Foundation Sample

Shows how to host a Windows Forms composite control on a WPF page, receive events from the control, and modify the control's properties from the page.

Hosting a Windows Forms Control in Windows Presentation Foundation Sample

Shows how to host a Windows Forms control on a WPF page.

Hosting a Windows Forms Control in Windows Presentation Foundation by Using XAML Sample

Shows how to host a Windows Forms control on a WPF page by using XAML.

Hosting Windows Presentation Foundation Content in a Win32 Window Sample

Shows how to create and host a WPF page in a Win32 window, and how to handle communication between the page and the host window.

Hosting a Windows Presentation Foundation Composite Control in Windows Forms Sample

Shows how to host a WPF UserControl in Windows Forms.

Localizing a Hybrid Application Sample

Shows how to localize WPF elements in a Windows Forms-based hybrid application.

Mapping Properties Using the ElementHost Control Sample

Shows how to use the PropertyMap property to map Windows Forms properties to corresponding properties on a hosted WPF element.

Mapping Properties Using the WindowsFormsHost Element Sample

Shows how to use the PropertyMap property to map WPF properties to corresponding properties on a hosted Windows Forms control.

Win32 Clock Interoperation Sample

Shows how to host a Windows Presentation Foundation (WPF) control inside of a Win32 application.

Hosting a Win32 HWND in WPF Sample

Shows how to put an hwnd inside a Windows Presentation Foundation (WPF) application.

Term

Definition

WindowsFormsHost

Describes the major features of the WindowsFormsHost class, which you can use to host a Windows Forms control as an element of a WPF page.

ElementHost

Describes the major features of the ElementHost class, which you can use to host a WPF control as an element of a Windows Forms page.

Term

Definition

Migration and Interoperability

Discusses interoperation between WPF-based applications and other types of Microsoft Windows-based applications.

WPF and Win32 Interoperation Overview

Discusses interoperation between WPF and Win32-based components or applications.

Date

History

Reason

February 2009

Removed Hosting an ActiveX control sample link

Content bug fix.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft