• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5364
  • Last Modified:

Convert WPF Forms application into a WPF Web Application

Can we  convert a WPF Forms application into a WPF Web Application ?
1 Solution
Maybe, but chances are it will take some work. The web application version would use the Silverlight plug-in, and it uses a subset of the WPF library. If you are very lucky, your WPF app only uses those pieces of the API that are also present in Silverlight, but if not, you have to get your hands dirty to provide workarounds.
XBAP might be another option. XBAP is WPF for web applications. It should be easier to convert a WPF application into XBAP than into Silvelight, since XBAP is more similar to Silverlight and has more functionality.
The advantage of Silverlight over XBAP is that Silverlight is more portable: You must have .net 3.x installed to use an XBAP application, and Silverlight does not have that requirement. So Silverlight is generally the better choice for Web applications - XBAP would be a good choice if you knew your users would be able to use it (eg: for intranet applications).
VS Template available at http://scorbs.com/2006/06/04/vs-template-flexible-application/
might be helpful. It allows you to convert between WPF Standalone and XBAP apps. I have not explored it thoroughly. May be it could help you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now