Click here to Skip to main content
15,901,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a WPF application I want to display that WPF application within browser. We can Convert the application as Web Application and re write the code but best is if we can avoid it.

I heard that, WPF applications(or forms) can be shown within browser, can anybody please help me in achieving this.

Please help me by guiding, which is the best approach and cost effective approach. Any sort of help may be its code snippet, a link or even a suggestion would help me a lot.

Thanks in advance.

What I have tried:

Googling and inquiring with colleagues and friends, any sort of help could be greatly appreciated.
Posted
Updated 7-Sep-16 21:05pm

I believe what you are referencing are XBAP applications. I encourage you to google about XBAP and see if it is right for what you want to accomplish.

WPF XAML Browser Applications Overview[^]

turn wpf to web application - Google Search[^]
 
Share this answer
 
Comments
Richard Deeming 7-Sep-16 16:28pm    
It's worth noting that XBAPs only work on Windows computers with .NET 3.0 or higher installed. They also only work in IE and Firefox - Chrome and Edge are not supported.

Silverlight is similarly restricted, although it should work on Mac OSX as well. But it's no longer maintained, and in five years even critical security vulnerabilities will not be patched.

By far the best approach is to rewrite as a web application. :)
Did you use the Model-View-ViewModel (MVVM)? There are some possibilities to use MVVM instead of MVC (Model-View-Controller) with Web Applications. I've never used them, so I cannot tell by experience. Look e.g. for knockout.js.
 
Share this answer
 

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