Use the ElementHost control to place a WPF UIElement on your Windows Forms control or form.
To host a Windows Forms control in a WPF element, use the WindowsFormsHost element.
Note: |
|---|
WindowsFormsIntegration.dll is installed with the
WPF assemblies. The default location for the assembly is %programfiles%\Reference Assemblies\Microsoft\Framework\v3.0\WindowsFormsIntegration.dll.
|
To host a WPF element in a Windows Form, you must assign the WPF element to the Child property.
Use the PropertyMap property to assign custom mappings between an ElementHost control and its hosted WPF element. For more information, see Windows Forms and WPF Property Mapping.