Shine a Light with Prism (the Composite Application Guidance for WPF and Silverlight) - Presentation Transcript
Shine a Light with “Prism” Dave Bost Developer Evangelist http://davebost.com/blog Pre-requisites for this presentation: 1) IoC, DI 2) Presentation patterns Level: Intermediate
http://thirstydeveloper.com “ Looking at someone’s code, but with audio”
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 in Feb shipped Feb. ‘09 (Silverlight)
Provides written and code-example guidance for composite solution space
Supports targeting both Silverlight & WPF composite applications
Are you building this?
Or something like this?
The Challenge
The Solution
Consider Prism
Provides Tools to help with separating your app and composing at run-time:
Tools to help you discover the pieces
Strategies and guidance for recomposition
Approaches for communication between these separate components
Event help with targeting both Silverlight and WPF
Prism-What’s in the box
Prism – Composite Client Application Guidance for WPF and Silverlight
Region Region Region New In Prism 2.0! < TabControl RegionManager.RegionName = "MainRegion"> regionManager. RegisterViewWithRegion( "MainRegion", typeof ( MainView ) );
Demo UI Composition
Commands and Events
Delegate & Composite Commands
Simplified Command Handling
Event Aggregator
Loosely Coupled Pub/Sub Events
Event Aggregator Module B Customer Presenter Module A Order Presenter Subscribe Publish Event
0 comments
Post a comment