《Prism 5.0源码走读》 设计模式
2014-08-11 22:16
387 查看
Prism或Prism构建的应用程序时会使用大量的设计模式,本文简要列举Prism相关的那些设计模式。
Adapter(适配器模式):Prism Library主要在Region和IoC container应用Adapter模式。
ContentControlRegionAdapter.cs
ItemsControlRegionAdapter.cs
SelectorRegionAdapter.cs
UnityServiceLocatorAdapter.cs
MefServiceLocatorAdapter.cs
Application Controller Pattern: 这个我们在应用程序中经常应用于控制View切换和跳转,减少event的数量。
Factory Pattern: Prism里面使用工厂模式来创建Region behavior.
RegionBehaviorFactory.cs
Command Pattern:
Dependency Injection Pattern:
Event Aggregator Pattern:
Facada Pattern:
Inversion of Control Pattern:
Observer Pattern:
Model-View-ViewModel Pattern:
Registry Pattern:
Service Locator Pattern:
Separated Interface and Plug-in
Composite and Composite View
下图是设计模式在Prism结构设计中的应用:
编辑记录:
2014.08.11 初始版本
2014.08.12 加入Factory Pattern
Adapter(适配器模式):Prism Library主要在Region和IoC container应用Adapter模式。
ContentControlRegionAdapter.cs
ItemsControlRegionAdapter.cs
SelectorRegionAdapter.cs
UnityServiceLocatorAdapter.cs
MefServiceLocatorAdapter.cs
Application Controller Pattern: 这个我们在应用程序中经常应用于控制View切换和跳转,减少event的数量。
Factory Pattern: Prism里面使用工厂模式来创建Region behavior.
RegionBehaviorFactory.cs
Command Pattern:
Dependency Injection Pattern:
Event Aggregator Pattern:
Facada Pattern:
Inversion of Control Pattern:
Observer Pattern:
Model-View-ViewModel Pattern:
Registry Pattern:
Service Locator Pattern:
Separated Interface and Plug-in
Composite and Composite View
下图是设计模式在Prism结构设计中的应用:
编辑记录:
2014.08.11 初始版本
2014.08.12 加入Factory Pattern
相关文章推荐
- 《Prism 5.0源码走读》Bootstrapper
- 《Prism 5.0源码走读》UnityBootstrapper
- 《Prism 5.0源码走读》Prism 5.0简介
- 《Prism 5.0源码走读》Service Locator Pattern
- 《Prism 5.0源码走读》ModuleCatalog
- 《GOF设计模式—中介者 (MEDIATOR)—Delphi源码示例:字体对话框
- C#二十几种设计模式事例下载(源码)
- 设计模式flyweight的C++实现源码
- 设计模式Command的C++实现源码
- 设计模式精解-GoF 23种设计模式解析附C++实现源码
- 设计模式 源码
- 设计模式源码下载
- 使用Qt和Interpreter设计模式开发计算器(附源码)
- Android设计模式系列(5)--SDK源码之备忘录模式
- Android设计模式系列(6)--SDK源码之享元模式
- Android设计模式系列(1)--SDK源码之组合模式
- 设计模式Proxy的实现源码
- .net 源码中的 设计模式
- 设计模式AbstractFactory的C++实现源码