如何让一个.NET Windows窗体项目看起来新鲜? [英] How can you make a .net windows forms project look fresh?

查看:133
本文介绍了如何让一个.NET Windows窗体项目看起来新鲜?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作是一直好几年了一个Visual Studio 2005 vb.net Windows窗体项目。这是充满了默认的文本框,标签,下拉菜单,数据网格,日期时间采摘 - 所有标准的东西。最终的结果是一个很灰色,老找项目。

I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking project.

什么是使这一项目的最佳方法看起来新鲜和时髦?我宁愿不重写所有品牌的新形式对象的完整的解决方案,但是那又是可以避免的?

What would be the best approach to making this project look fresh and snazzy? I'd rather not rewrite the entire solution with all brand new forms objects, but would that be avoidable?

推荐答案

实际上,我是今天刚刚打理一下的对话框。很多要看是什么样的应用,你有,什么OS上运行。一对夫妇的这些技巧一定会走很长的路jazzing的事情了。

I was actually just sprucing up a dialog today. A lot of it depends on what kind of application you have, and what OS it is running on. A couple of these tips will certainly go a long way to jazzing things up.

  1. 确保控制之间有足够的间距 - 不要塞进它们放在一起。空间是有吸引力。你也可以尝试流动的控制有点不同,当你有更多的空间。

  1. Ensure adequate spacing between controls — don't cram them all together. Space is appealing. You might also trying flowing the controls a little differently when you have more space.

把一些新的3D和光泽的图像。你可以把一个自定义警告对话框一个大黄色的感叹​​号。更换旧的工具栏按钮用新的。两个库我已经使用和喜欢的 GlyFX IconExperience 。你可以找到免费的了。理想的情况下获得一个图形艺术家做一些自定义的为您的应用程序确实填补了常见的使用之间的具体行动(确保它们都一起去)。这将走很长的路,以使它显得花哨。

Put in some new 3D and glossy images. You can put a big yellow exclamation mark on a custom warning dialog. Replace old toolbar buttons with new ones. Two libraries I have used and like are GlyFX and IconExperience. You can find free ones too. Ideally get a graphic artist to make some custom ones for the specific actions your application does to fill in between the common ones you use (make sure they all go together). That will go a long way to making it look fancy.

尝试不同的字体。宋体是一个很好的一个。很多时候,默认的字体是宋体。你可以做的更好。避免宋体和Comic Sans字体虽然。此外,还要避免大胆的大块 - 应谨慎使用。一般来说,你希望所有的字体相同的,只有使用不同的字体节制地​​设置文本的某些位分开。

Try a different font. Tahoma is a good one. Often times the default font is MS Sans Serif. You can do better. Avoid Times New Roman and Comic Sans though. Also avoid large blocks of bold — use it sparingly. Generally you want all your fonts the same, and only use different fonts sparingly to set certain bits of text apart.

添加柔和的色彩,以一定的控制。这是一个棘手的一个。你总是想用柔和的色彩,没有什么亮点或与之形成鲜明一般,但颜色应该预示着什么,或者如果你有一个网格,你可以用它来显示逻辑分组。这是一个滑坡。请注意,用户可能会改变他们的系统的颜色,这将改变你的颜色的外观。理想的情况下给他们一些颜色主题,或者改变颜色的能力。

Add subdued colors to certain controls. This is a tricky one. You always want to use subdued colors, nothing bright or stark usually, but the colors should indicate something, or if you have a grid you can use it to show logical grouping. This is a slippery slope. Be aware that users might change their system colors, which will change how your colors look. Ideally give them a few color themes, or the ability to change colors.

而不是想着养眼,想到可用性。做动作明显最常见的过程。的DevEx preSS马克·米勒对用户界面设计的科学有很大的谈话。我其实有它的视频和可能能够发布到网上一点点清理。

Instead of thinking eye-candy, think usability. Make the most common course of action obvious. Mark Miller of DevExpress has a great talk on the Science of User Interface Design. I actually have a video of it and might be able to post it online with a little clean-up.

投资于少数质量好的第三方控件。更换所有的控制可以是一个痛苦,但如果你使用的是默认的网格,例如,你会真正爵士乐它与从的 DevEx preSS 或其他一些组件供应商。要知道,不同的厂商有不同的理念如何及其组件的使用,因此换出来可能是一个有点痛。开始小试水,然后尝试的东西很复杂,你承诺更换所有的人之前。唯一差那么丑电网是丑陋电网与pretty的网格混合。一致性是金!

Invest in a few good quality 3rd party controls. Replacing all your controls could be a pain, but if you are using the default grids for example, you would really jazz it up with a good grid from DevExpress or some other component vendor. Be aware that different vendors have different philosophies for how their components are used, so swapping them out can be a bit of a pain. Start small to test the waters, and then try something really complicated before you commit to replacing all of them. The only thing worse then ugly grids is ugly grids mixed with pretty grids. Consistency is golden!

您也可以看看有色带控制替换旧的工具栏和菜单就像微软在Office 2007中没有那么大家都会觉得你是真的住宅区!只能再次更换关键部件和UI元素不假思索,你需要修补的整个用户界面。

You also might look at replacing your old tool bars and menus with a Ribbon Control like Microsoft did in Office 2007. Then everyone will think you are really uptown! Again only replacing key components and UI elements without thinking you need to revamp the whole UI.

要注意像Tab键顺序等基本的一致性,连贯性,一致性。

Of course pay attention to the basics like tab order, etc. Consistency, consistency, consistency.

有些应用程序借给自己完全成熟的蒙皮,而有的则没有。一般来说,你不希望任何华而不实的东西是被使用了很多。

Some apps lend themselves to full blown skinning, while others don't. Generally you don't want anything flashy that gets used a lot.

这篇关于如何让一个.NET Windows窗体项目看起来新鲜?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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