Advertisement

Prism v2 – Guidance and Patterns for WPF and Silverlight

The big news in the Silverlight developer world today is the release of Prism v2 (also called the Composite Application Guidance).  So what is this?

Prism guidance is a set of tools, samples, references and written guidance to help you more easily build modular applications.  Generally the “modular” application will feature several screens, flexible user interaction and role-based behavior.  Composite applications using these patterns are meant to be loosely coupled and contain independently evolving pieces that can work together.  So in the Prism 2 release you are provided:

  • Composite Application Library
  • Reference Implementation (Stock Trader application)
  • 9 Quick starts
  • 26 How-to’s
  • Documentation and written guidance on the UI patterns and client architectures you may face

There has been much talk about the Model-View-ViewModel (MVVM) pattern for Windows Presentation Foundation (WPF)and Silverlight development.  The Prism release adapts this model (refers to this as the presentation model to match what some other pattern documentation in the greater technology world uses) in the reference implementation of the Stock Trader application.

NOTE: The Stock Trader application is a reference implementation of the composite application guidance.  It isn’t meant to actually server real stock trading, but was inspired by those similar scenarios.

Prism 2 is an evolution from a July 2008 release that was primarily for WPF applications.  This new release brings updates and those concepts to Silverlight, including an implementation of commanding in Silverlight as well as demonstration of the use of input validation using these concepts.

For a walk through of some of the concepts and a brief discussion from the Patterns and Practices program management team, watch the latest Continuum show about Prism with Blaine Wastell.  This is a great development evolution for line-of-business application developers.  Check it out!


This work is licensed under a Creative Commons Attribution By license.

  1. 2/18/2009 7:46 PM | # re: Prism v2 – Guidance and Patterns for WPF and Silverlight
    Do you hvae the source code for the silverlight stock project used in the example?
  2. 2/18/2009 8:06 PM | # re: Prism v2 – Guidance and Patterns for WPF and Silverlight
    Steve it should be in the download -- is it missing?
  3. 2/19/2009 12:21 PM | # re: Prism v2 – Guidance and Patterns for WPF and Silverlight
    Thanks,

    Tim you are right is is part of the 12 mb download. What I found interesting is the WPF controls have a Command property, but silverlight controls do not. However the Composite Application Library was able to account for this so the same code runs both places.

    So this brings a point, is the silverlight team working on ways to make the code more compatable? I know they need to balance size with functionality, but I would thing the Command property is a big part of using the M-V-VM pattern
  4. 2/19/2009 12:54 PM | # re: Prism v2 – Guidance and Patterns for WPF and Silverlight
    Steve -- yes the P&P team in this guidance implemented ICommand in the library for Silverlight here. The Silverlight runtime team is continuing to evaluate and evolve the runtime over time. Projects like this and the Silverlight toolkit help to provide stop-gaps for those needing these features.
  5. 5/6/2009 5:43 AM | # re: Prism v2 – Guidance and Patterns for WPF and Silverlight
    Do you have an example of a Prism application that breaks out the Modules into Different xaps?. the "StockTrader" loads 1 xap.

 
Please add 2 and 8 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)