Prism应用开发(八)——松耦合组件之间通信
一、Commands
创建一个全局的command,该command将会在各个组件之间共享。
FundAddedEvent fundAddedEvent = this.eventAggregator.GetEvent<FundAddedEvent>();fundAddedEvent.Subscribe(FundAddedEventHandler, ThreadOption.UIThread, false,fundOrder => fundOrder.CustomerId == this.customerId);