Choose Silverlight or WPF?

Topics: Prism v2 - Silverlight 3, Prism v2 - WPF 3.5
Feb 17, 2010 at 11:39 AM


I know that Silverlight and WPF is both supported in CAL. With the project I am working on there should be some intergration with Legacy application. When we use WPF this will work, but Silverlight will not work with this. The goal is to create 1 blackbox module that will hold the legacy and over time this module will decrease when rebuilding parts as CAL Modules. For now we can't use Silverlight, but in the future we want to be able to use silverlight. Depending how fast the development will go this can be 1 year from now, but it can also be 3 years from now.

We are now struggling if we should take the effort to build both in Silverlight as in WPF. I personnaly thing we have to take care that the Architecture is ok that it can use services in the future. The Userinterface should be replacable with Silverlight i gues.

Can you help me to descide if we should use WPF only for now or that we should develope also in Silverlight allready.



Feb 19, 2010 at 3:08 PM

Hi Johan,

Without having the same context as you have it is difficult to provide an informed answer (which I’m sure you understand), but I’ll do my best to express my point of view.

One of the challenges that Prism was built to address is Multi-Targeting. That is facilitate the creation of applications that share the most of their code base, between WPF and Silverlight. The guidelines provided in the Prism documentation about this, the project linker, and this guidance you should be able to create a WPF application that can be “replicated” for Silverlight without many issues.

Something else that you might want to consider is the YAGNI principle. Unless you are completely certain that the Silverlight application is going to be used, you could avoid developing for Silverlight as well. Of course, you would need to contrast the possible risk of having created the Silverlight application with no need, with the time/money differences between the development team tackling only WPF or WPF & SL at once.

Please let me know if this helps.

Damian Schenkelman