【问题标题】:Migrate Prism 4 to Prism 6 - CompositePresentationEvent将 Prism 4 迁移到 Prism 6 - CompositePresentationEvent
【发布时间】:2016-04-12 15:31:19
【问题描述】:

我想将使用 Prism 4 编写的项目迁移到 Prism 6。

在 Prism 4 中,CompositePresentationEvent<T> 类型位于 Microsoft.Practices.Composite.Presentation.Events 命名空间下。

但是当我从 nugget 中提取 Prism 6 并删除旧的 Prism 4 引用时,我在 Prism 6 命名空间中的任何地方都看不到这种事件类型。

有人可以帮帮我吗?

【问题讨论】:

    标签: prism-6


    【解决方案1】:

    CompositePresentationEvent 已在 Prism 6 中删除。如果我没记错的话,if 在 Prism 5 中已弃用,并在 Prism 6 中完全删除。

    现在,您需要在 Prism.Events 命名空间中使用 PubSubEvent<TPayload>

    【讨论】:

      【解决方案2】:

      R. Richards 写的内容是正确的,因此被正确标记为答案。 但是,我可以为您提供以下链接作为参考:

      Upgrading from Prism Library 4.1

      正如标题所示,它指的是从 4.​​1 版升级到 5.0 版,但除了此处提到的更改之外,还有其他一些您可能会觉得有帮助的更改。

      【讨论】:

        猜你喜欢
        • 2022-01-17
        • 1970-01-01
        • 1970-01-01
        • 2011-06-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多