Documente Academic
Documente Profesional
Documente Cultură
PRISM - izing
PRISM
Composite Application Guidance for WPF & Silverlight
Code
Model-View-ViewModel Shell Bootstrapper Dependency Injection Regions Modules Event Aggregator Commanding
HEY!
Youre only using two members?
or even WPF
TIP
Easier to reuse ViewModel if it doesnt know the View
UI in one
TM
project
App.xaml Guidelines
App start/stop App-wide resources
Shell Guidelines
Visual host No smarts
Bootstrapper
No Shell_Loaded; no code-behind.
2
3 4
Create Shell Create View and ViewModel Add View to Shell Show the shell
UnityBootstrapper
Prism Services
Module Loading
Dependency Injection
UI in one
TM
project
from Bootstrapper
Module Guidelines
Configure Launch Get out of the way !
Module Sync
?
Problem
Module Independence
MODULE
CustomerOrdersModule
Infrastructure Assemblies
ModuleExplorer.Infrastructure Prism DevForce
Own Assemblies
ICOMMAND ?
Wires events Handles enabled
Tip
Use Prisms DelegateCommand<T>
Less code-behind ?
We can do that with Prism Commanding
No more AddHandlers!
Learn More
Prism
S/W & docs MSDN
www.codeplex.com/compositeWpf www.microsoft.com/compositeWpf
IdeaBlade DevForce
Data services
www.ideablade.com AskWard@ideablade.com
Resources
www.microsoft.com/teched
Sessions On-Demand & Community
www.microsoft.com/learning
Microsoft Certification & Training Resources
http://microsoft.com/technet
Resources for IT Professionals
http://microsoft.com/msdn
Resources for Developers
Related Content
Breakout Sessions (session codes and titles)
Track Resources
Resource 1
Resource 2
Resource 3
Resource 4
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.