2012年2月27日

解决Prism的EventAggregator的事件订阅错误

摘要: 在prism的EventAggregator事件订阅会指向一个方法,而该方法不能为private,否则该事件订阅将会无法方法该方法导致订阅错误!正确做法是将指向的方法改为public[ImportingConstructor]publicApplicationViewModel(IEventAggregatoreventAggregator,IRegionManagerregionManager){this.EventAggregator=eventAggregator;this.RegionManager=regionManager;this.EventAggregator.GetEven. 阅读全文

posted @ 2012-02-27 00:29 oldkingsir 阅读(606) 评论(0) 推荐(0) 编辑

导航