将 CAB 迁移到 CAL/PRISM

发布于 2024-10-03 17:40:46 字数 106 浏览 0 评论 0 原文

我正在从事 C#.NET 项目。在这个项目中,我们遵循 CAB 框架(Win 表单)。现在我们计划将 CAB 移至 WPF 的复合应用程序库。在这个迁移过程中,我必须考虑、遵循和遵循哪些事项?学习?

I have working on C#.NET project.In this project we follow CAB framework(Win forms). Now we plan to moving CAB to Composite Application Library for WPF. THis migrating process what are the things i have to consider, follow & learn?

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

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

发布评论

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

评论(2

梦魇绽荼蘼 2024-10-10 17:40:46

视图/GUI

  • XAML
  • 依赖属性
  • 双向绑定

Prism 和库

  • Unity
  • IoC、DI -通过组件部件的
  • 扩展 - MEF事件聚合器

我假设您已经熟悉将业务逻辑与 UI 逻辑分开的应用程序架构,但对于 XAML 应用程序和 Prism特别是,MV-VM 模式将视图“联姻”到业务领域,并且比 CAB 跳过的麻烦更少。

请注意,通过 Prism 4.0,这是最近的版本。

另请参阅 - MEF 与IoC/DI

View / GUI

  • XAML
  • dependency properties
  • two-way binding

Prism and Libraries

  • IoC, DI - Unity
  • Extension via Component Parts - MEF
  • event aggregator

I assume you're already familiar with application architectures that seperate business logic from UI logic, but for XAML applications and Prism in particular the MV-V-M pattern 'marries' the View to the business domain with less cumbersome hoops to jump than CAB.

Note that MEF is supported out of the box (alternative to Unity) with Prism 4.0, which is very recent.

See Also - MEF vs. IoC / DI

戏蝶舞 2024-10-10 17:40:46

一篇优秀的 MSDN 文章,对比了 CAB 和 Prism

http: //msdn.microsoft.com/en-us/library/ff921081%28v=pandp.40%29.aspx

An excellent MSDN article that contrasts CAB and Prism

http://msdn.microsoft.com/en-us/library/ff921081%28v=pandp.40%29.aspx

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