Migrate Prism 4 to Prism 6 - CompositePresentationEvent

家住魔仙堡 提交于 2020-06-11 18:49:16

问题


I want to migrate a project written with Prism 4 into Prism 6.

In Prism 4 the CompositePresentationEvent<T> type is under Microsoft.Practices.Composite.Presentation.Events namespace.

But when I pulled Prism 6 from nugget and removed old Prism 4 references, I could not see this event type anywhere in Prism 6 namespaces.

Anyone can help me a bit?


回答1:


The CompositePresentationEvent has been removed in Prism 6. If I recall correctly, if was deprecated in Prism 5, and removed completely in Prism 6.

Now, you need to use the PubSubEvent<TPayload> in the Prism.Events namespace.




回答2:


What R. Richards wrote is correct and has thus been correctly marked as an answer. Might I however offer you the following link as a reference:

Upgrading from Prism Library 4.1

As the title suggests it refers to upgrading from version 4.1 to 5.0 but there are, apart from the change mentioned here, other changes noted there which you might find helpful.



来源:https://stackoverflow.com/questions/34668759/migrate-prism-4-to-prism-6-compositepresentationevent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!