使用WPF或Windows窗体来创建项目 [英] Using WPF or windows form to create a project

查看:72
本文介绍了使用WPF或Windows窗体来创建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

而不是问题,这更像是一个问题,我有一些代码是由我的同事使用带有框架3.5的Windows窗体实现的。该应用程序包含一个Windows窗体和使用DotNetBar,C1FlexGrid,C1Input的试用版....应用程序菜单和按钮作为Windows 8开始菜单排序,但应用程序从未完成,我被要求完成它。实际上这个应用程序将用于MicroTerminals(基于Windows 7的分辨率为1024x600,其中屏幕是电阻性的)



应用程序从未完成,他正在使用DotNetBar的试用版,现在我被要求尝试使用其他东西而不是DotNetBar以避免许可证费用。



我的问题是我是否必须创建一个新的GUI最好是去WPF框架还是使用Windows窗体?



应用程序的主要用途是DataEntry,用户可以使用几个按钮一旦点击现有表格,将加载数据。



我尝试过:



没试过,因为这是一个问题而不是问题

Rather than a problem it is more a question, I have some code that was implemented by my co-worker using a Windows Form with framework 3.5. The application consists of a Windows Form and using a trial version of DotNetBar, C1FlexGrid, C1Input.... The application menus and button act as Windows 8 Start Menu sort of but the application was never completed and I was asked to complete it. Practically this application will be used on MicroTerminals (Windows 7 Based with a resolution of 1024x600 where screen is resistive)

The application was never completed, and he was making use of a trial version of DotNetBar, now I was asked to try to use something else rather than DotNetBar to avoid license cost.

My question is if I have to create a new GUI would it be best to go to a WPF framework or use a Windows Form?

The main use of the application will be of DataEntry, several buttons available to users so that once clicked existing forms will load for data entry.

What I have tried:

Not tried, as it is a question rather than a problem

推荐答案

你的问题清晰简洁。



就WPF和WinForms而言......我是WPF的忠实粉丝。完成WinForms多年后,您将学会解决许多限制。使用WPF,您几乎可以设计任何东西。我已经在WPF中完成了在WinForms中不可能的表单和控件。



鉴于目前的应用程序不完整,谁没有使用WPF?您最终会得到一个更清晰,更易于维护的UI。
Your question was clear and concise.

As far as WPF vs WinForms goes... I'm a big fan of WPF. Having done WinForms for many years you learn to work around a lot of limitations. With WPF, you can pretty much design anything. I've done forms and controls in WPF that would be impossible in WinForms.

Given that the current app is incomplete, who not go with WPF? You'll end up with a cleaner, more easily maintainable UI.


这不是一个好问题。我们需要很少的信息来提供关于选择的明确建议。我们没有关于您所获得的现有表单应用程序中实现的内容的信息,代码有多重要,有多少依赖于DotNetBar。您没有提供此组件的引用。你真的是那个需要做出所有决定的人。



如果你没有以前使用的组件的工作版本,那么开发一个没有的组件用它。什么样的应用程序,你应该使用什么UI框架/库,取决于许多因素。首先,它取决于可用的不完整应用程序使用的内容。你可能想要使用相同的(表格),但不一定。



[根据答案的合理评论编辑Kevin Marois。]



另见我对解决方案2的评论。



-SA
This is not a good question. We have to little information to give your the definitive suggestions on the choice. We don't have the information on what is implemented in the existing Form application you got, how valuable is the code, how much of it depends on that DotNetBar. You did not provide a reference to this component. You are really the one who needs to make all the decisions.

If you don't have a working version of the component used before, develop an application which does not use it. What kind of application, what UI framework/library you should use, depends on many factors. First of all, it depends on what that available incomplete application used. You may want use the same (Forms), but not necessarily.



See also my comments to the Solution 2.

—SA


除了其他解决方案之外,您还必须评估购买一个或多个试用组件是否比自己做同等版本更明智。



有一件事是评估每个组件目前使用了多少以及WinForms或WPF中没有使用的功能。



然后你必须知道你需要的许多许可证。如果您是单个开发人员并且应用程序有许多屏幕,您可以通过购买适当的组件来节省大量时间和邮寄。



顺便说一下,你有多大应用?你有几种形式?如果它非常大并且几乎正常工作,最好让它先工作(并购买必要的组件)。通常只是评估组件的时间可能会支付给他们......或者如何在你的情况下避免它们。
In addition to other solutions, you have to evaluate if it would be wiser to buy one or more of the trial components than to do the equivalent yourself.

One thing would be to evaluate for each component how much there are presently used and which features that are used are not available in either WinForms or WPF.

Then you have to know on many licenses you need. If you are single developer and the application has many screens, you might save a lot of time and monet by buying appropriate components.

By the way, how large is your application? How many forms do you have? If it is quite large and almost working, it is probably best to make it work first (and buy necessary components). Often just the time to evaluate component might pay them... Or how to avoid them in your case.


这篇关于使用WPF或Windows窗体来创建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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