Winfrom 中加入皮肤的方法
原理是很简单的,你像是换主题一样,只需要第三方法的类库就可以实现
SkinCrafter http://skincrafter.com/
irisskin http://www.sunisoft.cn/irisskin/index.htm
DotNetSkin http://www.dotnetskin.net/
还有更高级的 Infragistics NetAdvantage 2007 已经有2007版了
不过作为菜鸟,入一下门就可以了,下面讲解一下一个很简单的例子
用Irisskin作为例子
1)在新建了Project后导入IrisSkin2.dll
2)在Form1类声明中private Sunisoft.IrisSkin.SkinEngine skinEngine;
3)在Form1的InitializeComponent()方法初始化SkinEngine
4)System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.skinEngine = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this)));//记住这里的参数是这个程序的主窗口
5)然后在Load 事件中引用ssk文件(IrisSkin的皮肤)
this.skinEngine.SkinFile = "office2007.ssk";
6)运行程序就可以了
下面有IrisSkin2.dll的破解版
http://download.csdn.net/source/252225