从迁移到的WinForms WPF [英] Migration from Winforms to WPF

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

问题描述

我们正在使用使用Infragistic框架的WinForms。
我们正在考虑迁移到WPF。问题是,我们已经几种形式,在对话框的WinForms等。我们需要共同的外观和感觉因此,我们需要迁移所有WPF。

We are using Winforms using the Infragistic framework. We are considering the move to WPF. The problem is that we have already several forms, dialogs etc in Winforms. We need common look and feel thus we need to migrate all to WPF.

有没有采取WinForms和迁移到WPF中的迁移工具?我知道这是不可能完全做到这一点,但有一些会做一些工作?

Is there a migration tool to take Winforms and migrate to WPF? I know it is not possible to do it completely but is there something that will do some of the work?

感谢

推荐答案

在我速递,并根据您的架构,在一个翻译的是不是真正的正确方法去这里:考虑你为什么要搬到WPF中,并评估是否你真的要提交给它。这是一个强大的框架,但有一个相当陡峭的学习曲线,是真正值得你需要花时间来看看用户体验,看看如何WPF可以提供帮助。如果你想拥有的WinForms外观和感觉,只是转移到WPF,因为它是新东西,你在一个不愉快的惊喜。

In my opnion, and depending on your architecture, a one on one translation is not really the right approach to go here: consider why you want to move to wpf, and evaluate whether you really want to commit to it. It's a powerful framework, but there's quite a steep learning curve and to be really worth it you need to take the time to look at the user experience and see how wpf can help. If you want to have the winforms look and feel, and just move to wpf because it's the next new thing, you're in for an unpleasant suprise.

Anayway什么我们所做的,而我们迁移的WinForms东西是在WPF作出新的屏幕,并保持使用主办的 ElementHost的 WindowsFormsHost 。这些工作真的很好的方式 - 我们还没有跟他们任何问题至今。然后,我们通过画面迁移屏幕上头。看上去就像与此同时一个怪人,但至少我们有定期的反馈,一切都正常。

Anayway, what we've done while migrating our winforms stuff is to make new screens in wpf, and keep hosting the old winforms screen using ElementHost and WindowsFormsHost. These work really well by the way - we haven't had any problems with them so far. We then migrated screen by screen to wpf. Looked like a Frankenstein in the mean time, but at least we had regular feedback and everything was functional.

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

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