How do you put a WPF control into a Windows Forms Form? Most likely I will be inserting my WPF control into a Windows.Forms.Panel.
Form
Windows.Forms.Panel
Put an ElementHost control inside the panel. This control can then host a WPF element. From the WinForms designer, you can find this control under 'WPF Interoperability'. First you may need to add WindowsFormsIntegration.dll to your project's references.
ElementHost
WindowsFormsIntegration.dll
For an example, see Walkthrough: Hosting a WPF Composite Control in Windows Forms.
2.1m questions
2.1m answers
60 comments
57.0k users