To the Prism Team MVVM Examples in wpf Desktop

Topics: Prism v4 - WPF 4
Aug 25, 2010 at 7:53 AM


I have noticed that in the latest drop 6 that all the MVVM examples uses silverlight and not wpf. And all the majority of old examples  still uses the presenter.

Wondering if there were any plans to have some MVVM examples in WPF Desktop?

Being a "Beginner" in prism and for any other beginners out there its much easier to see also a wpf desktop example.

Sorry where I work we dont use silverlight at all.Is the direction in future to use silverlight rather than wpf desktop?

I am really pleased that you started to use Moq in your Unit testing.

I have also noticed that the documentation is quite good.

Thanks for any replies


Aug 25, 2010 at 7:57 PM

Thanks for the feedback.  I have a few comments and hopefully an answer to the request for a WPF MVVM RI.

Working on this version of Prism, we have intentionally implemented the MVVM samples in Silverlight first, as it is usually easier to port from Silverlight to WPF.  We also determined it would be harder to do MVVM "properly" in SIlverlight than in WPF due to the constraints of Silverlight, so we wanted to show it there first to work around the pain points.

One of our goals with Prism is to support both Silverlight and WPF, but we may not show everything on both platforms.  We are planning on re-writing the Stock Trader RI using MVVM, MEF, our Navigation guidance and showing both WPF and Silverlight implementations, so there should be something showing MVVM in WPF by the time we ship.  In the meantime, the principles and the concepts behind the implementation should be baked at this point, so it should be possible to learn how to do a WPF implementation from the Silverlight samples.  There are a few things in WPF (like automatic data template selection) that should make the implementation simpler.

As far as using Moq goes, we like using it, but not all the unit tests will be re-done to use Moq.  We are using it on new code and changing fixtures selectively, since (believe it or not) we have a limited team and limited time. ;-)

Thanks for the comment about the documentation. We spend quite a bit of effort trying to make it useful and readable.  If you see any big gaps or challenges, let us know.  If there are things that are difficult to get up to speed on, we really want to know. (We do know about the formatting issues in the code snippets and are working on ensuring that non-breaking spaces do not get in the docs again).



Aug 26, 2010 at 8:03 AM

Thanks for your reply.

I understand about having a limited team etc.. Sometimes because its Microsoft we tend to forget all that and assume that you have no budget :)

Thanks again for your reply and again really like your documentation.