的WinForms样式/ UI外观和感觉技巧 [英] Winforms Style / UI Look and Feel Tips
问题描述
我来自多年的asp.net开发回的WinForms应用程序。
Coming from many years of asp.net development back to a winforms application.
寻找建议和提示就如何风格的WinForms相似,我如何与CSS /母版页做的asp.net。
Looking for advice and tips on how to "style" winforms similar to how I would do with CSS/Master Pages in asp.net.
我有兴趣就如何在一个地方更新字体/颜色为某些类型的控件。如何保持布局的一致性。
I am interested on how to update font/colors for certain types of controls in one place. How to maintain consistency for layouts.
任何指针/文章是AP preciated。
Any pointers/articles are appreciated.
仅供参考... WPF是不是这个项目的选项。
FYI...WPF is not an option for this project.
推荐答案
您可以创建你所需要的不同的标准控件的定制版本,从原来的版本,在继承,但应用自定义样式,自定义版本。这会给你一个地方来更改组件式的造型。你也可以有各自的控制采取了样式对象作为全系统的样式参数。
You could create custom versions of the different standard controls you need, inheriting from the original versions but applying custom styles to the custom versions. This would give you a single place to change the styling of a component type. You could also have each of the controls take a style object as a parameter for system-wide styles.
这篇关于的WinForms样式/ UI外观和感觉技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!