Reputation: 11483
I'm willing to build a simple database application using Silverlight
. Is it possible to use that code base as a WPF application? Final goal is to have exactly one code base to serve both as a Desktop application and as a Web application.
Upvotes: 2
Views: 174
Reputation: 45096
I agree with the other answers on just do Silverlight in a Full Trust. WPF is not limited to HTTP and that is a good thing. I have an application that is primarily used internally with WPF clients. For external clients (on the other side of the firewall) I a will build Silverlight client. What I did was build business objects that can hopefully be consumed by both WPF and Silverlight. For performance and features I need WPF. Silverlight has some stuff WPF does not - e.g. autocomplete but for the most part WPF is beefier.
Upvotes: 0
Reputation: 189437
Yes don't bother building the WPF application. Build it all in Silverlight and allow the Silverlight app to be installed as an Out of browser app.
Upvotes: 1
Reputation: 137118
There are differences between the XAML that Silverlight and WPF support so you won't be able to do it this way.
What you will be able to do though is create a Full Trust Application in Silverlight that can be installed onto the desktop.
Upvotes: 1