(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Working with Prism 4: E-book


Working with Prism 4
Author: Brian Noyes

Price: $2.99     Add to Cart

Formats: PDF, Word, EPUB, MOBI. All source code added to the downloadable package.
Number of pages: 51
Release date: April 2012


This e-book collects all 4 parts of the series Working with Prism 4together with source code. 

From the author: Prism has a number of specific feature sets that I will explore in this series that helps you to build your client application as a composite application. These include:

  • Modularity – Functionality to define and dynamically load chunks of loosely coupled functionality into a single running application instance.
  • UI Composition – Functionality to plug in views into parent containers in a loosely coupled fashion where the parent and child do not need to know explicitly about one another with direct object references.
  • Communications – Functionality to support loosely coupled commands and pub/sub events between the components of your application.
  • Navigation – Functionality to switch views when the user interacts with the application within a container without every view and parent view needing to know about all the others.

An important thing to understand about Prism is that it is not an all-or-nothing framework. You can use any one or several of the features in isolation and ignore the other parts if they do not make sense for your application or your requirements. In addition to these major features, there are many small little helper classes and utilities in Prism that can be used on their own as well.


Chapter 1: Getting Started
Step 1: Create your Prism application
Step 2: Decide which Dependency Injection container to use 7
Step 3: Add the Prism Library assemblies
Step 4: Add a Bootstrapper
Step 5: Add a Module project to your solution
Step 6: Add the Module class
Step 7: Define the Module catalog
Step 8: Add the module XAP to the host site
Step 9: Read the ModuleCatalog.xaml from the bootstrapper
Step 10: Add a Region to the Shell
Step 11: Add a View to the Core Module and plug it into the Shell region
Step 12: Making it easier
Chapter 2: MVVM Basics and Commands
MVVM Basics
Commanding Basics
Step 1: Getting Some Data Into the Application
Step 2: Creating a CustomerListView
Step 3: Replace WelcomeView with CustomerListView
Step 4: Add a View Model
Step 5: Hook the view up to the view model
Step 6: Adding an Edit Command
Step 7: Pushing selection state into the view model
Step 8: Define an edit view to switch to
Step 9: Define the CustomerEditViewModel
Step 10: Switch to the edit view when the Edit command executes
Chapter 3: Composite Command and Pub/Sub Events
Pub/Sub Events
Step 1: Add the Prism Libraries and Recompile for Silverlight 5
Step 2: Modify the application to present multiple edit views
Step 3: Add a CompositeCommand for the Save All command
Step 4: Hook up the CompositeCommand Invoker
Step 5: Hook up the child command instances
Step 6: Add an Orders Module
Step 7: Add another region for the view to plug into
Step 8: Add a View and ViewModel to present the order summary
Step 9: Add a Prism Event
Step 10: Hook up the subscriber
Step 11: Publish the event
Chapter 4: Region Navigation
View Switching Navigation
Step 1: Export the views by logical name
Step 2: Switch to “View First” construction of the CustomerEditViewModel
Step 3: Request navigation to the CustomerListView on initial load
Step 4: Remove the view model coupled code
Step 5: Request navigation to the CustomerEditView for the right customer
Step 6: Let the CustomerEditViewModel control its own initialization and instancing
Step 7: Let the view decide when navigation happens

About the author:

Silverlight Show Presenter Brian NoyesBrian Noyes is Chief Architect of IDesign, a Microsoft Regional Director, and Connected System MVP. He is a frequent top rated speaker at conferences worldwide including Microsoft TechEd, DevConnections, DevTeach, and others. He is the author of Developing Applications with Windows Workflow Foundation, Smart Client Deployment with ClickOnce, and Data Binding in Windows Forms 2.0. Brian got started programming as a hobby while flying F-14 Tomcats in the U.S. Navy, later turning his passion for code into his current career. You can contact Brian through his blog at http://briannoyes.net/ or on twitter @briannoyes.