Prism Training Kit 4.0

Prism4.0实战指南
本文介绍Prism4.0的五大动手实验,涵盖模块化、依赖注入、引导程序定制、UI组合及模块间通信等核心概念。通过逐步指导,帮助读者掌握使用XAML模块目录配置模块、注册及消费服务、自定义启动程序、利用视图注入和发现以及使用事件聚合进行通信等技巧。

上周刚刚发布的支持Windows Phone 7的Prism 4.0最终版Damian, Diego, GuidoEzequiel更新了Prism Training Kit ,这个beta版的Training Kit包括5个动手实验涵盖了Prism的核心概念(modularity, bootstrapping, dependency injection, UICompositionCommunication):

  1. Modularity Lab: Shows how to decouple your solution using modules. Includes step-by-step guidance on how to configure modules in code and using a XAML ModulesCatalog. There is also an exercise that explains how to load Silverlight modules remotely.
  2. Dependency Injection Lab: Shows how to register and consume services in a decoupled way. Explains the main features of Unity, and how to register and resolve dependencies.
  3. Bootstrapper Lab: Shows how to customize the bootstrapping of your application. Explains how to configure a custom logger.
  4. UIComposition Lab: Shows how to compose the UI of you application from several decoupled views. Includes brief step-by-step explanation on using the MVP pattern and the use of controllers. Explains the use of the RegionManager and RegionViewRegistry for ViewInjection and ViewDiscovery.
  5. Communication Lab: Shows how to communicate between modules in a decoupled way. Includes brief step-by-step guidance on using the MVVM pattern (and refactoring from MVP) and detailed steps for using DelegateCommands with AttachedBehaviors. Publishing and Subscribing using the EventAggregator is also described.
  6. MEF Lab: Explains how to load modules using a MEF container for dependency injection, how to use the new ViewExport attribute, how to load modules remotely and monitor its download progress.
  7. Navigation Lab: Explains the view-based navigation approach supported by the Prism API. It shows how to pass parameters between views, canceling/confirming navigation, and how to use the navigation Journal.

转载于:https://www.cnblogs.com/shanyou/archive/2010/11/20/1882866.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值