Building Composite Applications with Silverlight - Prism 2.0

43 %
57 %
Information about Building Composite Applications with Silverlight - Prism 2.0

Published on February 19, 2009

Author: christhi

Source: slideshare.net

Description

Building Composite Applications with Silverlight - Prism 2.0

Christian Thilmany Blog: www.flyover18.com UX Architect Microsoft Corporation

Christian Thilmany

Blog: www.flyover18.com

UX Architect

Microsoft Corporation

Session Objectives And Takeaways Session Objective(s): Able to determine RIA composite application scenarios and recommend solutions for the scenarios using Prism for Silverlight and WPF. Prism – V2 out now Provides written and code-example guidance for composite solution space Supports targeting both Silverlight & WPF composite applications

Session Objective(s):

Able to determine RIA composite application scenarios and recommend solutions for the scenarios using Prism for Silverlight and WPF.

Prism – V2 out now

Provides written and code-example guidance for composite solution space

Supports targeting both Silverlight & WPF composite applications

 

 

 

 

 

Prism-What’s in the box Prism – Composite Client Application Guidance for WPF and Silverlight Library Reference Implementation Documentation Quick-Starts & How-To’s Community – CodePlex Prism 1.0 – WPF Released July 2008 Prism 2.0 – Silverlight Just Released Feb 2009!

Prism – Composite Client Application Guidance for WPF and Silverlight

Library

Reference Implementation

Documentation

Quick-Starts & How-To’s

Community – CodePlex

Prism 1.0 – WPF

Released July 2008

Prism 2.0 – Silverlight

Just Released Feb 2009!

 

Rough Cut Editor Microsoft Confidential

New In Prism 2.0!

Modules Unit Of Application Assembly Collection of Related Components Feature, Services, Views, Data Access Mandatory or Optional or Role Specific Example: Banking app: Checking Module, Credit Card Module, Trading Module, News Module Unit Of Development Independent Development/Testing Unit Of Deployment Up-Front, Background or On-Demand

Unit Of Application Assembly

Collection of Related Components

Feature, Services, Views, Data Access

Mandatory or Optional or Role Specific

Example: Banking app: Checking Module, Credit Card Module, Trading Module, News Module

Unit Of Development

Independent Development/Testing

Unit Of Deployment

Up-Front, Background or On-Demand

Modules Module Discovery Pluggable Catalogs Module Loading Background or On-Demand Module Loader Extended In Prism 2.0!

Module Discovery

Pluggable Catalogs

Module Loading

Background or On-Demand

Modules & Catalogs

UI Composition Shell – Application Host Window Regions – Named Areas For View Placement Views – Encapsulate UI & Presentation Logic Region Region Region // View Injection IPositionPresentationModel presentationModel = …; IRegion mainRegion = regionManager.Regions[ &quot;MainRegion&quot; ]; mainRegion.Add( presentationModel.View ); < TabControl RegionManager.RegionName = &quot;MainRegion&quot;> < ItemsControl RegionManager.RegionName = “ResearchRegion” /> < ContentControl RegionManager.RegionName = “ActionRegion” />

Shell – Application Host Window

Regions – Named Areas For View Placement

Views – Encapsulate UI & Presentation Logic

UI Composition View Discovery Composition: Less Complex Black Box ‘App Assembly’ Composition Select Views & Pull into Region Region Region Region New In Prism 2.0! < TabControl RegionManager.RegionName = &quot;MainRegion&quot;> regionManager. RegisterViewWithRegion( &quot;MainRegion&quot;, typeof ( MainView ) );

View Discovery Composition:

Less Complex

Black Box ‘App Assembly’ Composition

Select Views & Pull into Region

Commands and Events Delegate & Composite Commands Simplified Command Handling Event Aggregator Loosely Coupled Pub/Sub Events Module B Customer Presenter Module A Order Presenter Event Aggregator Subscribe Publish Event

Delegate & Composite Commands

Simplified Command Handling

Event Aggregator

Loosely Coupled Pub/Sub Events

Prism Silverlight Logical Architecture HOST APPLICATION LOADING SERVICES CORE SERVICES MODULE PREFFERED SERVICES Modules MODULES Presenter View Model ModuleCatalog Module Loader EventAggregator Logging RegionManager Unity Module Initializer Model

Multi-Targeting User Experiences Desktop – In the Office, Full Functionality, Offline RIA – Out of the Office, Functional Subset, Online WPF Application Silverlight (RIA) Application BROWSER DESKTOP CLR - Silverlight CLR Desktop BCL BCL

User Experiences

Desktop – In the Office, Full Functionality, Offline

RIA – Out of the Office, Functional Subset, Online

Multi-Targeting: Strategies Start with LCD Use Links and Parallel Project Structures Separated Presentation Strategies Keep single source If not, apply the sieve #IF SILVERLIGHT Partial Classes Partial Methods Separate Classes Rewrite the Code

Start with LCD

Use Links and Parallel Project Structures

Separated Presentation Strategies

Keep single source

If not, apply the sieve

Multi-Targeting WPF CLR - Silverlight CLR Desktop BCL BCL BROWSER DESKTOP Controllers Models Presenters Views Models Controllers Presenters Views

Stock Trader RI

Where Can You Find It? www.microsoft.com/compositewpf www.codeplex.com/compositewpf http://www.flyover18.com

www.microsoft.com/compositewpf

www.codeplex.com/compositewpf

http://www.flyover18.com

Summary Prism Library of Patterns for Composite Client Applications Targets WPF Desktop and Silverlight RIA Applications View Discovery Composition, Separated Presentation Patterns, Module Catalog Multi-Targeting to reuse code between Silverlight and WPF Download from CodePlex and send us feedback

Prism

Library of Patterns for Composite Client Applications

Targets WPF Desktop and Silverlight RIA Applications

View Discovery Composition, Separated Presentation Patterns, Module Catalog

Multi-Targeting to reuse code between Silverlight and WPF

Download from CodePlex and send us feedback

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Add a comment

Related presentations

Related pages

VWP04: Build Composite WPF and Silverlight Applications ...

Silverlight Applications with Prism ... Data Binding in Windows Forms 2.0, ... • Guidance for building composite applications
Read more

Composite Application Guidance for WPF and Silverlight

Prism (Composite Application ... guidance when building composite applications. ... WPF or Silverlight applications that are ...
Read more

CodePlex - patterns & practices: Composite WPF and Silverlight

... as composite applications. Prism ... building WPF or Silverlight applications that ... Silverlight 3, named Composite Application ...
Read more

Composite Application Guidance | Innovation Showcase

Tag: Composite Application Guidance Prism Updated for Unity 2.0 and Silverlight 4. Building Complex Applications using WPF or Silverlight? The Composite ...
Read more

Building a Composite WPF and Silverlight Application with ...

... I am going to build a Composite Silverlight application using Prism. ... WPF and Silverlight Application with Prism ... after building the ...
Read more

Composite Application Library (CAL or PRISM)

Prism 5.0. Composite Apps; Apps built for change and built to last; ... Prism for WPF and Silverlight and Prism for Windows Runtime have thriving online ...
Read more

Prism – Composite Application Guidance

Prism – Composite Application ... Data Binding in Windows Forms 2.0 ... Composite Application Guidance for WPF and Silverlight Guidance for building ...
Read more

Building Composite XAML Applications with Prism -- Live ...

LTH23 Building Composite XAML Applications with Prism. 03/13 ... Silverlight, and Windows ... required to build a composite application with the Microsoft ...
Read more

Hello Prism 2.0! | David Hill's WebLog

Hello Prism 2.0! ★ ★ ★ ★ ★ ★ ... guidance delivered in Prism 1.0 for building composite WPF applications to also support composite ...
Read more