Search code examples
c#wpfvb.netwinformsprism-4

How do I switch between two apps seamlessly?


I have a .NET application that was written in C# and VB.NET using WinForms. We want to slowly migrate this to something new, in many iterations. The new code will be entirely C# and WPF. We would like to utilize Prism.

As far as I know, we can't integrate the old WinForm app in Prism.

I am considering making my old app show the new app in certain instances. For example, when you press a tab in the old app, the new app opens on top of the old app, with the same tabs. Over time, only the new app would be necessary.

How can I do this?


Solution

  • Like my comment above if you HAVE to do this hack I would start creating WPF Controls and ViewModels and integrate then in WinForms. So your slowly replacing Forms in your Winforms app with WPF Control, Pages, and Windows. Here is a tutorial to get you started

    Keep in mind you should be creating a WPF during the side at the same time. That way when your like 85% done you can just concentrate on the WPF app.