Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting WPF to Web [closed]

My application is built into WPF using Infragistics control(xaml).

I wanted to port the existing app into Web but we don't want to use silverlight(for silverlight we need plugin to be available in our browser and target users will not be having permission to install any plugin into their browser) is there any third part control available which helps us to port our WPF pages into WEB faster.

like image 764
Rizwan Avatar asked Feb 02 '13 11:02

Rizwan


People also ask

Is WPF still relevant 2022?

“WPF would be dead in 2022 because Microsoft doesn't need to be promoting non-mobile and non-cloud technology. But WPF might be alive in that sense if it's the best solution for fulfilling specific customer needs today. Therefore, having a hefty desktop application needs to run on Windows 7 PCs with IE 8.

Can WPF be targeted to Web browser?

WPF only runs on windows. You can make a type of wpf application called xbap which runs in a browser. BUT. Only on windows.

What is replacing WPF?

Universal Windows Platform. Both Windows Forms and WPF are old, and Microsoft is pointing developers towards its Universal Windows Platform (UWP) instead. UWP is an evolution of the new application platform introduced in Windows 8 in 2012.

How do I open a WPF file in my browser?

Open Windows Explorer, go to the folder that contains the compiled version of your WPF Browser application and double-click the application (the . xbap file). This will launch the application.


1 Answers

There are two ways to port WPF to web:

  1. Silverlight (which you said you can't use) and
  2. WPF XAML Browser Applications

Those are the only options I'm aware off.

If you want to convert your WPF app to ASP.NET Web forms or MVC you would have to do it manually.To make it easier you could create shared code which can be used by both WPF and the web application.

If you've followed the MVVM pattern in the WPF project that will make your job a lot easier as you can re-use the view model in MVC (with minor changes)

like image 191
Denys Wessels Avatar answered Oct 28 '22 23:10

Denys Wessels