摘要: Debug Data Bindings Using an IValueConverterProblemYou need to debug a binding that is not working as expected and want to make sure the correct values are going in.SolutionCreate a converter class that implements System.Windows.Data.IValueConverter and returns the value it receives for conversion, 阅读全文
posted @ 2011-03-10 17:02 Further 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 一. Three main elements in UML1. basic build block: thing, relationship, diagram2. rule: name, scope, visibility, integrity, execution3. common mechanism: specification, adornment, common division, extensiblity mechanism(stereotype, tag value, constraint)二. Relationship: dependency, association, gene 阅读全文
posted @ 2011-03-10 11:16 Further 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 开闭原则(open/close principle, OCP): Open on extensibility , close on modification. We should use interface to encapsulation, use abstract mechanism, and use polymorphism.Liskov替换原则(Liskov Substitution Principle, LSP), 依赖倒置原则(Dependency Inversion Principle, DIP) depend on interface, instead of concrete 阅读全文
posted @ 2011-03-10 10:14 Further 阅读(219) 评论(0) 推荐(0) 编辑