My company is in the process of updating an ancient piece of software from VB6 to c#. We used a conversion tool that converted a lot of our code to use Winforms. We are looking to update the UI to use WPF and want to go through that process slowly. Outside of just rewriting everything from scratch in a new WPF project, can I create WPF windows in the existing winforms project? I feel that would be the simplest way to go through and update the UI in various screens.
Asked
Active
Viewed 39 times
0
-
This is apparently native in .NET 6.0. You can edit the project file and make sure you have have Use WPF and Use Winforms enabled and you can use both in the same project. In my case I ran into an issue with the GenerateAssemblies setting being false, but setting that to true made it work. – aegeus24 Jan 10 '23 at 00:10