InfoQ

News

PRISM: A WPF Composite UI Framework

Posted by Abel Avram on May 01, 2008 07:22 AM

Community
.NET
Topics
Tags
Frameworks

Complex client applications containing lots of graphical interfaces need to be constructed from various component blocks, perhaps developed by separate teams, and assembled together like a giant puzzle. Such an application has what is called a "Composite UI". The building blocks, or the modules, it is made of, are developed separately, and they should work together and should be assembled into one application with as little effort as possible. A solution, a framework, for that purpose is of great help for architects and developers.

Microsoft has created several solutions over time like Composite UI Application Block (CAB):

It provides proven practices to build complex smart client user interfaces based on well known design patterns such as the Composite pattern, in which simple user interface parts can be combined to create complex solutions, but at the same time allowing these parts to be independently developed, tested, and deployed.

Another Microsoft solution is Smart Client Software Factory:

The Smart Client Software Factory provides an integrated set of guidance that assists architects and developers create composite smart client applications.

Other solutions are Mobile Client Software Factory for the Windows Mobile platform, and Web Client Software Factory for the web.

PRISM stands for PResentation Integration SysteM, and it is a project also endorsed by Microsoft specifically targeted at WPF, and hosted on CodePlex. According to Glenn Block, a Technical Product Planner for Microsoft, PRISM offers the following benefits:

    • Provides complete support for WPF
    • Dynamically composes user interface components
    • Application modules are developed, tested and deployed by separate teams
    • Allows incremental adoption
    • Provides an integrated user experience

Right now, PRISM "includes a reference implementation, a reusable library code and pattern guidance", but the plan is to develop a framework which composite applications can be built upon. The latest release was made available on April 15th, 2008 and it was an intermediate in-development one. The current source code depends on Castle Windsor, but the final release won't depend on that.

Caliburn by Rob Eisenberg Posted May 1, 2008 1:17 PM
Prism by Glenn Block Posted May 8, 2008 3:43 AM
Castle Windsor by Glenn Block Posted May 8, 2008 3:45 AM
  1. Back to top

    Caliburn

    May 1, 2008 1:17 PM by Rob Eisenberg

    Just an FYI, Caliburn does everything Prism can and much, much more. It's been used in production applications and is available as an open source framework right now.

  2. Back to top

    Prism

    May 8, 2008 3:43 AM by Glenn Block

    Hi Abel Prism does not stand for Presentation Integration System. This was just something I throughout in a blog post. For now Prism has no meaning other than relating to a prism itself :) As far as how Prism compares to other similar offerings including those we have delivered in the past, I have a post on this here. http://blogs.msdn.com/gblock/archive/2008/05/08/prism-vs-framework-xxx.aspx

  3. Back to top

    Castle Windsor

    May 8, 2008 3:45 AM by Glenn Block

    Also, Prism does not depend on Castle Windsor as these were our early spikes. Prism does not actually depend on any specific container. Our Reference Implementation and Quickstarts use Unity, however the core Prism libraries do not depend on Unity.

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.