Your SlideShare is downloading. ×
0
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Soft serve prism
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Soft serve prism

639

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
639
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Presenter: <br />Sergiy Beslik<br />Prism - Composite Application Guidance for WPF and Silverlight<br />
  • 2. What is Composite Application?<br />Composite Application consists of loosely coupled modules that can be developed independently, discovered at runtime and work together.<br />
  • 3. What is Prism?<br />Prism is a set of guidance designed to help building composite UI applications with WPF and Silverlight.<br />
  • 4. What is Prism?<br />Library<br />Reference Implementation<br />Guidelines<br />Quick-Starts<br />
  • 5. Prism Core Concepts<br />Modules<br />UI Composition<br />Dependency Injection<br />Events and Commands<br />Separated Presentation Patterns<br />Multi-targeting<br />
  • 6. Modules<br />Unit of development<br />Modules can be developed and tested independently by different teams.<br />Unit of deployment<br />Modules can be loaded on demand, minimizing application start-up time.<br />Modules can be added or changed without re-building the whole application.<br />
  • 7. Bootstrapper<br />Bootstrapper<br />Module A<br /> public class ModuleA : IModule<br /> {<br />public void Initialize()<br /> {<br />
  • 8. UI Composition<br />Views from multiple modules are displayed at run time in specific locations within the application's UI.<br /><TabControlRegionManager.RegionName= “MainContentRegion” /><br />Module A<br />Module B<br /><ItemsControlRegionManager.RegionName= “NavigationRegion"><br />
  • 9. View Discovery vs. View Injection<br />Views can be instantiated automatically when region is displayed, or explicitly injected into region.<br />
  • 10. Dependency Injection<br />Dependency Injection Pattern<br />Service Locator Pattern<br />
  • 11. Events and Commands<br />Delegate Command<br />Implements delegate-based Command pattern<br />Composite Command<br />Implements multiple handlers command routing<br />Event Aggregator<br />Implements publishing and subscribing to loosely coupled events<br />
  • 12. Event Aggregator<br />Event Aggregator is a mediator service that allows decoupling of publishers and subscribers.<br />Module A<br />Module B<br />eventAggregator.GetEvent<MyEvent>().Subscribe(MyEventHandler, ThreadOption.UIThread, false, MyEventFilter);<br />eventAggregator.GetEvent<MyEvent>().Publish(eventArgs)<br />
  • 13. Separate Presentation Patterns<br />Model-View-Controller (MVC)<br />Model-View-Presenter (MVP)<br />Presentation Model (PM)<br />Model-View-ViewModel (MVVM)<br />
  • 14. Model-View-ViewModel Pattern<br />
  • 15. Prism Reference Implementation<br />Demo…<br />
  • 16. Prism Releases<br />Prism 1.0 – WPF, July 2008<br />Prism 2.0 – WPF & Silverlight 2.0, Feb 2009<br />Prism 2.1 – WPF & Silverlight 3.0, Oct 2009<br />Prism 2.2 – WPF & Silverlight 4.0, May 2010<br />Prism 4.0 – WPF & Silverlight 4.0, beta version is available<br />
  • 17. What’s new in Prism 4.0<br />WPF 4.0 Support<br />More ViewModel Pattern Guidance<br />Managed Extensibility Framework (MEF) Support<br />Guidance For Out of Browser Applications<br />Application Structure Patterns & Navigation<br />
  • 18. Useful links<br />MSDN Magazine article “Patterns For Building Composite Applications With WPF”: http://msdn.microsoft.com/en-us/magazine/cc785479.aspx<br />MSDN Magazine article “WPF Apps with the Model-View-ViewModel Design Pattern”: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx<br />PowerPoint presentation and video from Patterns & Practices Symposium in Kiev, September 2010: http://www.techdays.in.ua/videos/2897.html<br />Download latest version of Prism: http://compositewpf.codeplex.com/releases/view/46046<br />
  • 19. Europe Headquarters<br />52 V. Velykoho Str.<br />Lviv 79053, Ukraine<br />Tel: +380-32-240-9090Fax: +380-32-240-9080<br />E-mail: info@softserveinc.com<br />Website: www.softserveinc.com<br />US Headquarters<br />12800 University Drive, Suite 250Fort Myers, FL 33907, USA<br />Tel: 239-690-3111 Fax: 239-690-3116<br />Thank You!<br />Copyright ©2010 SoftServe, Inc.<br />Contacts<br />

×