摘要:Provider 与 Strategy 的区别 1,strategy 更加宽泛,provider 针对 configurable service, plug-in An article with example in code project
阅读全文
随笔分类 - Patterns & Practices
摘要:问题:实现一个解析器,可以将文本解析成表达式树;例如:"-3 + 4 * (2 / -log( 1 - 5 ))" 表达式数据结构:操作符 + – × / (),常数,等等,都应被定义为一种类。特别说明,将括号定义为一种表达式是很有必要的。对于负号的处理,可以在表达式类中加入一个成员变量做标记; 解析器:上面的树状结构是结果,获得这个树,就需要对字符进行解析,来创建树,基本逻辑如下。 1,从左...
阅读全文
摘要:很好的学习资料 http://karlshifflett.wordpress.com/2011/06/29/boise-prism-unity-wpf-mvvm-code-and-decks/ https://skydrive.live.com/?cid=51de981e071f222b&sc=documents&uc=1&id=51DE981E071F222B%21321#
阅读全文
摘要:Prism v4 Region Navigation Pipeline
阅读全文
摘要:假设,有这样一个应用程序模块MyApp.InfrastructureMyApp.DataMyApp.PresentationMyApp.Shell
阅读全文
摘要:注意:这一系列随笔都基于这个假设--------Prsim 提供了4中方式:Commanding,Event Aggregation,Region Context,Shared ServicesCommanding1,定义全局的 CompositeCommand,通常需要被定义在一个基础模块中,比如 MyApp.Infrastructure;2,在View Model中定义一个 ICommand;3,在View Model的构造函数中 RegisterCommand;4,Binding 步骤1中的 CompositeCommand 到 GUI 上。当 GUI 触发 CompositeComma
阅读全文

浙公网安备 33010602011771号