Using WPF Controls

You can use Windows Presentation Foundation (WPF) controls in your Windows Forms-based applications. Although these are two different view technologies, they interoperate smoothly.

The Windows Forms Designer provides a visual design environment for hosting Windows Presentation Foundation controls. A WPF control is hosted by a special Windows Forms control that is named ElementHost. This control enables the WPF control to participate in the form's layout and to receive keyboard and mouse messages. At design time, you can arrange the ElementHost control just as you would any Windows Forms control.

You can also use Windows Forms controls in your WPF-based applications. For more information, see WPF Designer.

In This Section

Reference

  • ElementHost
    Describes a class which you can use to host Windows Presentation Foundation controls in your Windows Forms-based applications.

  • WindowsFormsHost
    Describes a class which you can use to host Windows Forms controls in your Windows Presentation Foundation-based application.

  • Migration and Interoperability
    Describes interoperation between the Windows Presentation Foundation and Windows Forms technologies.

  • WPF Designer
    Describes how to design Windows Presentation Foundation controls in Visual Studio.