0

我有一个与此完全相反的问题:Prism,在 shell 中发布的事件未在模块中捕获!

该事件在我的一个模块中引发,并像这样发布:

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

订阅如下所示:

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

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

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

4

0 回答 0