摘要: Event Aggregator模式定义:渠道事件从多个对象通过一个单一的对象来简化clients的注册。结构图:Prism的Event Aggregator模式:Event Aggregator允许多对象定位和发布、订阅事件。我们从Prism源代码中的EventAggregator和CompositePresentationEvent可以学习它是如何管理和传递事件消息的。 1 public interface IEventAggregator 2 { 3 TEventType GetEvent<TEventType>() where TEventType... 阅读全文
posted @ 2013-04-21 14:42 老鱼_678 阅读(2425) 评论(0) 推荐(2) 编辑