整个项目的颜色属性 [英] color property for whole project

查看:91
本文介绍了整个项目的颜色属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我正在Windows应用程序上制作一个项目,其中我要通过一次更改来更改整个应用程序的颜色.我如何处理这种问题,因为据我所知,没有像asp.net中的颜色属性.请尽快帮助我.

hi friends,
I''m making a project on windows aplication in which I what to change color of my whole application through single change. how can I handle this kind of problem because there is no property for color like in asp.net according to my knowledge. please help me soon.

推荐答案

我认为您的意思是蒙皮"您的WinForm.我们正在使用具有我们自己的自定义颜色的DeveloperExpress SkinFramework(商业产品)来实现这一目标.这是链接:
http://www.devexpress.com/Products/NET/Controls/WinForms/Skins/ [^ ]
I think what you mean is to "skin" your WinForm. We are achieving this using the DeveloperExpress SkinFramework (commercial product) with our own custom colors. Here is a link:
http://www.devexpress.com/Products/NET/Controls/WinForms/Skins/[^]


项目没有颜色,这个问题没有道理. :-)

应用程序…以及应用程序的颜色也没有任何意义.颜色从Form开始,以System.Window.Forms开始.确实,您为表单设置了BackColor,此颜色将由控件分层继承.参见:
http://msdn.microsoft.com/en-us/library/system. windows.forms.control.aspx [ ^ ],备注"部分,关于AmbientProperties:
http://msdn.microsoft.com/en-us/library/system. windows.forms.ambientproperties.aspx [ ^ ].

我认为这就是您所需要的.

—SA
Projects do not have colors, the question makes no sense. :-)

Application… and the color of the application also makes no sense. Colors start from a Form, with System.Window.Forms. Indeed, it you set, say, BackColor for a form, this color will be inherited hierarchically by controls. See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx[^], the "Remark" section, about AmbientProperties:
http://msdn.microsoft.com/en-us/library/system.windows.forms.ambientproperties.aspx[^].

I think this is what you need.

—SA


这篇关于整个项目的颜色属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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