Run WinForms app inside PRISM module

Topics: Prism v4 - WPF 4
Oct 14, 2011 at 8:06 PM

We are trying to modularize our WinForms application by adding functionality in the form of PRISM modules.  Is it best to host the WinForms app inside of a WPF PRISM application, or the other way around?



Oct 14, 2011 at 8:47 PM


In my opinion, this decision depends mostly on whether you plan yo migrate your existing application to WPF on the near future. Both approaches are possible in theory (through the use of either the ElementHost class to host WPF controls in WinForms ones, or the use of the WindowsFormsHost class to do it the other way round).

On the other hand, you might find the following blog posts useful, which treat this subject:

I hope you find this helpful.

Guido Leandro Maliandi