Norick
Norick

Reputation: 271

How to change a Winform application into a WPF application?

I do have a Winform solution with two projects. Now I would like to have a UserControl which I can use in my new WPF application.

Question: What is the best and easiest way to create such UserControl? Is it better to open a new project from scratch or is there a way to create such UserControl directly from the existing winform solution?

Upvotes: 0

Views: 158

Answers (1)

Sriram Sakthivel
Sriram Sakthivel

Reputation: 73442

You can reuse Winforms controls in WPF and viceversa. But think whether you really need it.

WPF provides great support for DataBinding whereas Winforms provides very little support for it. Patterns to implement UI differs in both technologies, etc.

Consider reimplementing the UserControl with patterns specific to respective UI technology rather than trying to reuse it in different UI technology.

If at all you want to reuse it: Here you go.

Upvotes: 4

Related Questions