Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is it possible to convert wpf project in to .net mvc project

What I have tried:

i had try to put xaml file into the view folder and its .cs file in controller
Posted
Updated 9-Jul-22 12:46pm
Comments
Mike Hankey 9-Jul-22 10:47am    
You've not given much information but as a general rule the two are totally different beasts and cannot be converted....refactored yes.

There is no "conversion".

The two application types are so different that it's going to require you to rewrite the application from scratch.

About the only code that can be ported over, IF YOUR APPLICATION WAS WRITTEN CORRECTLY!, are business rules and class code.

No, you cannot use any of the XAML files directly in MVC.
 
Share this answer
 
v2
Comments
Graeme_Grant 9-Jul-22 18:48pm    
There are options...
The best option to look t is Uno Platform - Build Pixel Perfect Applications[^]. This is based on XAML.

But as pointed out by Dave, thee will be a lot of work involved. Have a read of this from their website: Uno Platform - WPF Developers[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900