StockTrader-RI sample to become more MVVM-ized in final v4?

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Oct 4, 2010 at 4:26 AM
Edited Oct 4, 2010 at 4:42 AM

The Readme with the pre-release Prism v4 “Drop 8” says under “Major changes in this drop”: 
“Started converting the StockTraderRI to MEF and update for consistency with MVVM guidance.”

Does that mean the plan is to fully MVVM-ize it to the same extent as the MVVM-RI sample by the time v4 releases?

Hmm.  After looking at the "Drop 8" StockTraderRI sample again, it looks like some of the MVVM-izing has already been done.  For example, ITrendLinePresentationModel.cs is now ITrendLineViewModel.cs.

How much needed to be changed?

Thanks,
SLEverywhere

Oct 4, 2010 at 5:07 AM

That is the plan.  Look for the changes in Drop 9, which should happen in the next week or so... assuming things go well.

In addition to MVVM-izing the Stock Trader, we also MEFified it as people were requesting a more complex MEF example.

Let me know if you have any questions

Oct 5, 2010 at 6:54 PM
Edited Oct 5, 2010 at 6:59 PM

A related question about the MVVM-samples:

I'm curious about the origin of the "MVVM RI" sample that is new with Prism v4.

Is it somewhat positioned as a response to the MVVM-Light-Toolkit?  Like MVVM-Light, it strips away most of traditional features of full-Prism.  It has no Unity Depenency-Injection or Prism-modularity features, no UI-Regions, no EventAggregator, etc.  Instead of using Unity DI, or the Prism-ized MEF used by the full StockTrader-RI sample, it uses MEF directly.

MVVM-Light seems to have quickly risen over the last year to become a strong #2 contender in this SL/WPF-framework space. Some have made the argument that with "MVVM-Light plus MEF", many people don't really need the intimidating complexity of full-blown Prism.  (See for example, Laurent's comment here.  Note this 2010-01 comment is about the older, pre-v4 version of Prism.)

The "MVVM RI" sample seems to be Prism v4's way of saying: "Dude... You want 'lite'?  We can do that too!"

Hey, competition is often good.


Any truth to the above hypothesis?

Thanks,
SLEverywhere