DevExpress the Skin custom use

Surely everyone for DevExpress is no stranger to the skin, the skin comes with more than a dozen have been enough for us to use. But it comes with the Skin Editor, we can its editor to edit the style of our own skin.

Here's to the editor to be our own skin.

This compilation in your installer

image

Open it.

Interface is as follows:

image

New construction, to change the skin name (name and key, the next will say). Select a style. Edit to modify. Specific changes can refer to the official video, the address is:

Official Skin of Demo video http://tv.devexpress.com/#;XtraSkins.tag;1 , some specific operations, but also to understand the practical application in the future.

After editing is completed, the next important step, keep it. Figure:

image

Click on it, it will have dll skin in the skin folder. After successful compilation will pop up as follows:

image

其中这句话:    DevExpress.Skins.SkinManager.Default.RegisterAssembly(typeof(DevExpress.UserSkins.UserSkin).Assembly); //Register!

To be added to our project started earlier form.

Then we can again refer to it in our project.

My form is used in skin defaultLookAndFeel this space, so I added the phrase in the Load event of the form, ok.

defaultLookAndFeel.LookAndFeel.SkinName = "MySkin_Black"; MySkin_Black this is the skin above the name speaks here with.

The official said that the video can be selected directly, but I tried not. Only through the above methods, the official video a little misleading.

Achieve renderings:

image

I write to you, who has a better way, please advise. Thank you. E-mail [email protected]

Reproduced in: https: //my.oschina.net/cookblack/blog/621363

Guess you like

Origin blog.csdn.net/weixin_34062469/article/details/92046062