从Windows窗体迁移到WPF [英] Migrating from Windows forms to WPF

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

问题描述

嗨朋友们,



我在Windows应用程序上使用.Net。在这个项目中我们有50个表单,现在我们需要将整个应用程序转换为WPF以获得丰富的UI。我有更好的方法来做到这一点。



请给我这方面的建议。



问候,

Harish Reddy

Hi Friends,

I'm working on .Net on Windows Application. In this project we have 50 forms are there, now we need to convert the entire application to WPF for rich UI. I there any better way for doing this.

Please give me the suggestions for this.

Regards,
Harish Reddy

推荐答案

是的,有一种更好的方法:从头开始编写新的应用程序,只使用旧应用程序中的想法。你试图重用UI代码越多,浪费的时间就越多 - 这个观察是在几个项目中完成的。



当然,如果你设法从UI中分离非UI代码,您将能够重用其中的大部分或全部。



-SA
Yes, there is a better way: write new application from scratch, using just the ideas from old application. The more you try to "reuse" the UI code, the more time you will waste — this observation was done on several projects.

Of course, if you managed to separate non-UI code from UI well, you will be able to reuse most or all of it.

—SA


另外,如果你有很多表单,那么在转换过程中你可能仍然可以使用WinForms。
Also, if you have a lot of forms, then maybe you can still use WinForms for many of them during the transition.


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

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