是否可以将 WPF 版本的客户端复合 UI 应用程序块 (CAB) 用于 WinForms 应用程序

发布于 2024-08-24 08:59:13 字数 404 浏览 12 评论 0原文

我正处于设计客户端应用程序的初始阶段。然而,作为 WPF 的新手,并且已经获得了一些 Win 表单开发的经验,项目的时间压力意味着走 WPF 路线存在风险。如果时间没有压力,那么我会说忘记 WPF 的表单和设计。然而,我却没有那么幸运能够拥有这样的奢侈。在花了一些时间研究表单的复合应用程序块后,我决定一定会在这个框架内开发应用程序。但是,CAB 有 2 个版本,第一个版本用于 WinForms,目标是 .Net 2.0 运行时(现已停用),另一个是 WPF 版本,目标是 .Net 3.5。我不喜欢“退役”代码库,因此更喜欢使用 CAB 的 WPF 版本。这可能是一个愚蠢的问题,但是是否可以使用 WPF 版本的 CAB 进行 Win 表单应用程序开发?我确实设想在未来的某个时候转向 WPF。如果我可以使用 CAB 的 WPF 版本,我希望这将使将表单应用程序迁移到 WPF 变得更容易。

I am at the initial stage of designing a client application. However, being new to WPF and having already gained some experience in Win forms development, time pressures on the project means that there is a risk to going down the WPF route. If time were no pressure, then I would say forget forms and design with WPF. However, I am not lucky enough to have this luxury. Having spent a little time investigating the Composite Application Block for Forms, I have decided that I will definitely develop the application within this framework. However, there are 2 versions of the CAB, 1 for WinForms that targets the .Net 2.0 runtime which has now been retired, and then the WPF version which targets .Net 3.5. Not being a fan of 'retired' code libraries, I would prefer to use the WPF version of CAB. This may be a silly question, but is it possible to use the WPF version of CAB for Win forms application developement? I do envisage at some point in the future moving to towards WPF. If I could use the WPF version of CAB I am hoping that this would make it easier to migrate the forms application to WPF.

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

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

发布评论

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

评论(2

☆獨立☆ 2024-08-31 08:59:13

看起来有人与您有相同的想法。

我通过阅读 CompositeWPF codeplex 论坛上的此帖子找到了它,讨论这个问题。

It looks like somebody had the same idea that you did.

I found it by reading this thread on the CompositeWPF codeplex forum, discussing this very issue.

許願樹丅啲祈禱 2024-08-31 08:59:13

您应该能够在没有太多问题的情况下做到这一点。目前,我们正在使用 CAB 来在 WPF 中显示 SQL Reporting Services 报告(以及其他一些项目)。这是一个非常简单的实现,但我们的架构是基于 WPF 的,而不是 WinForms。据我们所知,如果反过来的话也不会有太大问题,并且显示两种类型的表单的方式都是相同的。

You should be able to do this without too many issues. We are currently using CAB to enable us to display SQL Reporting Services reports in WPF (along with a couple other items). It's a pretty simple implementation, but our architecture is WPF-based, not WinForms. As far as we've been able to tell, there wouldn't be much of a problem were it the other way around, and displaying both types of forms is done the same way.

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