Currently, I have a WPF application (.NET Framework 4.7.2) that references 3rd party assemblies containing WinForms controls (.NET Framework 4.7.2). The WPF application utilizes some of those WinForms controls in its user interface. This is achieved by hosting the WinForms controls in System.Windows.Forms.Integration.WindowsFormsHost
on the WPF user interface. This approach works but requires that the WPF application directly references the WinForms assemblies and loads them when the WPF application is starting.
Now, the assemblies containing the WinForms controls are part of a standalone application. I'm wondering whether it would be feasible to build the user interface of the WPF application by getting the WinForms controls from another process instead of directly referencing the WinForms assemblies.
So, the scenario would be that the WPF application first spawns a new process running the WinForms application. It would then somehow access the WinForms controls from that external process and show them in its own user interface. Can this be achieved with the .NET Framework 4.7.2?