I am considering creating a WPF interface for a Silverlight application. Since Silverlight usually has a smaller set of features, this should be possible, but I'm not sure what the best way is to approach this issue. From the very beginning, let me say that I am currently launching the application from a browser, but it lacks functionality, for example, capturing system keys, which I would like to add, along with some W7 integration.
I previously shared the source between Silverlight and WPF, creating a project for each, and then using "add as link" to link the source files between them. This time I will probably use .NET RIA Services to exchange source and business logic between platforms.
The problem I see is sharing Xaml between projects. It is pretty copy and paste compatible, with the exception of namespaces, but it is not a great way to share resources. Has anyone come up with a good way to share Xaml between Silverlight and WPF?
The last option that crossed my mind was for the WPF application to use the Browser control to host the Silverlight application. Then I can add special Windows features to them. It seems to me the purest way to move from a development perspective and testing. What do everyone think?
source
share