托管可扩展性框架 (MEF) 与复合 UI 应用程序块 (CAB)

编程入门 行业动态 更新时间:2024-10-23 18:20:59
本文介绍了托管可扩展性框架 (MEF) 与复合 UI 应用程序块 (CAB)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我们目前正在考虑将 CAB 或 MEF 用于我们的下一个应用程序.我没有看到有关如何为兄弟控件通信处理事件代理的 Codeplex 示例,也许我错过了.MEF中的控件间通信是如何工作的?

We are currently looking at either using CAB or MEF for our next application. I didn't see any examples on codeplex of how event brokering is handled for sibling control communication, maybe I missed it. How does inter-control communication work in MEF?

此外,我们计划使用 Infragistics,它为 CAB 框架提供了额外的组件.Infragistics 控件将如何集成到 MEF 中?

Also, we are planning on using Infragistics which has provided additional components for the CAB framework. How well will Infragistics controls integrate into MEF?

总的来说,MEF 是否值得追求一个相当大的、15,000 小时的严格开发、应用程序?

Overall, is MEF worth pursuing for a decently large, 15,000 hours of strictly development, application?

推荐答案

我可能错了,但我认为 MEF 没有任何事件代理.它是一个类似于 ioc 容器的通用组合引擎,但用于更通用的插件和应用程序可扩展性解决方案.另一方面,CAB 和 Prism 是 UI 框架,允许由 UI 组件组成的复合应用程序.由于 UI 组件很可能需要相互通信并响应其他 UI 组件中的活动,因此底层框架需要提供 UI 组件之间的事件(发布/订阅)机制.

I may be wrong but I don't think that MEF has any event brokering. It is a general composition engine similar to ioc containers but intended for a more general plug-in and application extensibility solution. CAB and Prism on the other hand are UI frameworks that allow composite applications that're made up of UI components. Since UI components will most likely need to communicate with each other and respond to activities in other UI components, the underlying framework needs to provide a mechanism for eventing (pub/sub) between UI components.

这篇关于托管可扩展性框架 (MEF) 与复合 UI 应用程序块 (CAB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 02:06:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/901384.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:扩展性   应用程序   框架   MEF   UI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!