将 VB.NET 2.0 Winform 迁移到 3.5 WPF
是否可以将 VB.NET Winform 解决方案迁移到 3.5 WPF 解决方案。 如果是这样,有什么建议如何做吗?
提前致谢! JFV
Is it possible to migrate a VB.NET Winform solution to a 3.5 WPF solution. If so, any suggestions how to do it?
Thanks in advance!
JFV
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
微软为我们做了一切,所以我们不得不扔掉两年前写的所有东西。
根据约什·史密斯的说法,
不。这两个 UI 平台非常不同,并且没有任何应用程序可以将 WinForms 应用程序转换为 WPF 应用程序。 当然,这不会阻止您重用在 WinForms 中使用的任何业务/DAL/日志记录/Ioc/等库。
但是,您可能想查看这个,非常基本但功能性 WinForms->XAML 转换器,由来自 WPF & 的 Rob Relyea 编写。 Xaml 语言团队。
按照他的说法,
此外,您可能还想查看 将应用程序从 Windows 窗体迁移到 WPF 的指南,同样由 Rob Relyea 编写。
Microsoft is doing everything for us so that we have to throw away everything we've written 2 years ago.
According to Josh Smith,
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.
However, you might want to check out this, quite basic but functional WinForms->XAML converter, written by Rob Relyea from WPF & Xaml Language Team.
According to him,
Also, you might want to check out Guidance for migrating an app from Windows Forms to WPF, also by Rob Relyea.
直接的答案是“不”。
如果您想充分利用新平台的所有真正功能,您需要重建整个 Win 表单 UI 端以及大部分相关代码,以实现有效的数据绑定和用户体验。 您的 DataLayer 可以在 WPF 中完全重用。
上提出的大量问题
您可以检查同一个将大型 C# winforms 应用程序升级到 WPF 的最简单方法是什么
从 Winforms 迁移到 WPF 需要克服的更大障碍是什么?
Straight answer is a big No.
If you want to take all the real power of the new platform, you need to rebuild the entire Win forms UI side and most of the associated code for effective data binding and User experience. Your DataLayer can be reused fully in WPF.
You can check plenty of questions asked on the same
What is the easiest way to upgrade a large C# winforms app to WPF
What are the bigger hurdles to overcome migrating from Winforms to WPF?
现在有一个项目可以完全满足您的要求。 请参阅Windows 窗体到 Windows Presentation Foundation 转换器。 另请参阅视频。
There is now a project that does exactly what you ask for. See Windows Forms to Windows Presentation Foundation Converter. Also, see the video.