Though Windows Platform Foundation (WPF) provides a huge set of controls with a rich set of features, there can still be chances of various cases when you have some Windows Form (WinForm) controls that are not available in WPF. There could be some cases too, when you are porting your WinForm application to WPF, where you have no other choice than reusing existing controls and/or forms, as the reimplementation will burn huge efforts. So, what needs to be done in such cases?
WPF provides a way to reuse existing controls from Windows Forms and host them inside it (whether in a control, a window, or a page). This is called interoperation between the two platforms as they present two different architectures for creating application interfaces.
The System.Windows.Forms.Integration namespace provides you with the classes that enable the common interoperation scenarios, whereas the WindowsFormsHost class provides you with the capability to implement...