为什么在模块中引发的PubSubEvent没有被Shell捕获?

时间:2015-06-15 19:04:40

标签: prism prism-5

我遇到的问题与此完全相反:Prism, Event published in shell not caught in module!

该事件在我的一个模块中引发,并以如下方式发布:

_eventAggregator.GetEvent<ButtonEvent>().Publish("hello");

订阅如下:

this._eventAggregator.GetEvent<ButtonEvent2>().Subscribe(method1, true);

当引发事件时,其他程序模块的订阅工作正常,但shell不接收消息。

任何想法如何解决这个问题?

0 个答案:

没有答案
相关问题