自定义.NET控件外观 [英] Customize .NET Controls Appearance

查看:138
本文介绍了自定义.NET控件外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我是新手,我想自定义.NET控件的样式和外观,但尚未成功.我不想使用第三方控件.

我发现的唯一一件事就是GDI +编程,但是似乎很困难.例如,我想创建一个在翻转事件时带有内部阴影的按钮.
看看这个页面.这几乎是我想要的:
http://www. vgdotnet.com/index.shtml [ [ ^ ]

请帮助.
任何建议将不胜感激.

Hi everyone

I am novice and i would like to customize .NET Controls style and appearance but no success yet. I don''t want to use third party controls.

the only thing that i found is GDI+ programming but it seems so difficult. for example i want to create a button with inner shadow on roll-over event.
take a look out this page. this is almost near what i want:
http://www.vgdotnet.com/index.shtml[[^]

Plz help.
any suggestion would be appreciated.

推荐答案

写道:​​

发现是GDI +编程,但似乎很困难.

the only thing that i found is GDI+ programming but it seems so difficult.



GDI +是绘制所有控件的方式.这是您唯一的选择.您需要让您的控件所有者绘制并编写GDI +代码以按您希望的外观绘制它们.在Code Project上有大量文章,其中包含所有者绘制的控件,您可以看一下.



GDI+ is how all controls are drawn. It''s your only option. You need to make your controls owner drawn and write GDI+ code to draw them as you desire them to look. There''s tons of articles here on Code Project with owner drawn controls that you can look at.


如果您要从头开始创建项目,则可以改用WPF或Silverlight winforms.这些提供了很棒的控件样式和自定义功能.
If you are looking at starting your project from scratch, you could use WPF or Silverlight instead of winforms. These provide awesome control styling and customization features.


这篇关于自定义.NET控件外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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