将 VB.NET 2.0 Winform 迁移到 3.5 WPF [英] Migrate VB.NET 2.0 Winform to 3.5 WPF

查看:37
本文介绍了将 VB.NET 2.0 Winform 迁移到 3.5 WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 VB.NET Winform 解决方案迁移到 3.5 WPF 解决方案.如果是这样,有什么建议吗?

Is it possible to migrate a VB.NET Winform solution to a 3.5 WPF solution. If so, any suggestions how to do it?

提前致谢!JFV

推荐答案

Microsoft 正在为我们做任何事情,因此我们不得不扔掉 2 年前编写的所有内容.根据乔什·史密斯的说法,

Microsoft is doing everything for us so that we have to throw away everything we've written 2 years ago. According to Josh Smith,

有没有办法将 Winforms 应用程序转换为 WPF 应用程序?

Is there a way to convert Winforms application to a WPF application?

没有.这两个 UI 平台非常不同,并且没有将 WinForms 应用程序转换为 WPF 应用程序的应用程序.当然,这不会阻止您重用您在 WinForms 中使用的任何业务/DAL/日志记录/Ioc/etc 库.

No. Those two UI platforms are very different and there is no app which converts a WinForms app to a WPF app. Of course, this will not prevent you from reusing any business/DAL/logging/Ioc/etc libraries you use in WinForms.

但是,您可能想查看这个,非常基本但功能强大的 WinForms->XAML 转换器,由来自 WPF & 的 Rob Relyea 编写Xaml 语言团队.

However, you might want to check out this, quite basic but functional WinForms->XAML converter, written by Rob Relyea from WPF & Xaml Language Team.

据他说,我们(Microsoft)还没有构建真正的转换器,因为我们认为大多数人不仅会移动控件,而且经常会在移动时重新考虑他们的应用程序.我们希望得到反馈......"

According to him, "We (Microsoft) haven't built a real converter because we think most people will not just move over controls, but often will rethink their application as they move it. We'd love feedback..."

此外,您可能想查看 将应用程序从 Windows 窗体迁移到 WPF 的指南,同样由 Rob Relyea 撰写.

Also, you might want to check out Guidance for migrating an app from Windows Forms to WPF, also by Rob Relyea.

这篇关于将 VB.NET 2.0 Winform 迁移到 3.5 WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆