Silverlight 4:Prism 还能用吗?

发布于 2024-08-29 13:57:45 字数 116 浏览 1 评论 0原文

即使 Silverlight 4 已经支持命令(例如 MVVM 概念),您还会将 Prism 与 SL4 一起使用吗?

Prism 中是否有可用于改进 Silverlight 4 应用程序设计的功能?

Would you still use Prism with SL4, even when Silverlight 4 already supports commanding, e.g. MVVM concept?

Are there features in Prism which can be used and improve design of Silverlight 4 application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迷爱 2024-09-05 13:57:45
  • 模块 - 构建应用程序(可以在需要时动态加载模块的选项)
  • RegionManager - 处理从不同独立模块的组件组装 UI(布局)
  • EventAggregator - 处理跨模块通信(例如松散耦合通信)
  • Modules - to structure the application (with an option of dynamically loading modules when needed
  • RegionManager - to deal with assembling UI (layout) from components from different independent modules
  • EventAggregator - to deal with cross-module communication (e.g. loosely coupled communication)
半山落雨半山空 2024-09-05 13:57:45

一般而言,坚持 Prism 模式会迫使 Silverlight 开发具有额外的结构级别。这对开发团队(而不是个人)尤其有利,因为工作可以清晰地划分。

最新的 Prism 4 于 8 月 2 日进入测试版,现在添加了 MEF 支持(托管扩展性框架) PL 提到的其他功能。

MEF 非常适合构建基于插件的框架。作为其功能的示例,Visual Studio IDE 本身使用 MEF 作为插件来实现几乎所有内容。现在您可以在 Silverlight 中执行相同类型的动态插件!

我们目前正在使用之前的 2.2 进行 Silverlight Prism 开发。发布,但一旦 Beta 版结束就会转移到 Prism 4。

On a general note, sticking to the Prism pattern forces an additional level of structure on your Silverlight development. This is especially of benefit to dev teams, more than individuals, as that work can be cleanly partitioned.

The latest Prism 4 went to beta on August 2nd and now adds MEF support (Managed Extensibility Framework) to the other features PL mentions.

MEF is great for building a plug-in based framework. As an example of what it can do the Visual Studio IDE itself uses MEF to implement pretty much everything as a plug-in. Now you can do the same sort of dynamic plugins in Silverlight!

We are currently doing Silverlight Prism development with the previous 2.2. release, but will move over to Prism 4 as soon as it is out of Beta.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文