[DevExpress Support Team: CLONED FROM K18293: How to load skins dynamically]
Is there any particular reason to set SkinName to 'UserSkin' ?
I tried to set SkinName to cxCombobox1.Text and it works too
what's the difference between 'UserSkin' and .Text ?
In My case, i want to use different skin for form and control.
For example :
form skin = office2013white ===> set from dxSkinController1 ===>comboboxFormSkin
control skin = office2010blue ===> set from dxLayoutSkinLookAndFeel1 ===>comboboxControlSkin
my controls are inside dxLayoutControl with dxLayoutControl's LookAndFeel set to dxLayoutSkinLookAndFeel1
in comboboxFormSkin onPropertiesEditValueChange :
dxSkinController1.SkinName := 'UserSkin'
in comboboxControlSkin onPropertiesEditValueChange :
dxLayoutSkinLookAndFeel1.LookAndFeel.SkinName:='UserSkin'
when I choose skin from comboboxControlSkin, "both" form and control skin changed to the selected skin
and after that, even comboboxFormSkin will also change control skin (comboboxFormSkin works correctly if comboboxControlSkin's value is not changed yet)
the correct behavior is : comboboxFormSkin will change form skin, and comboboxControlSkin change control skin
this behavior is achieved correctly with SkinName := combobox(form / control)skin.Text
why it is not achieved with SkinName := 'UserSkin' ?
thank you
Is there any particular reason to set SkinName to UserSkin?
Answers approved by DevExpress Support
Hello Farry,
I suggest you read our help documentation about skins to learn more about them and about on how to use them.
As for setting the SkinName property to the 'UserSkin' value, you can read the "TcxLookAndFeelController.SkinName" help topic, where you will see that if this property is set to ‘UserSkin’, you need to provide a skin to be applied by the controller. To accomplish this, call the dxSkinsUserSkinLoadFromFile, dxSkinsUserSkinLoadFromFileByIndex, dxSkinsUserSkinLoadFromStream, or dxSkinsUserSkinLoadFromStreamByIndex function to load a skin from a .SKINRES file saved in the Skin Editor or a stream containing skin data.
<<i want to use different skin for form and control.>>
A similar task has been already discussed in the K18423: How to set different skins for different forms and their controls Knowledge Base article.
Should you face any difficulties, please feel free to contact us.