Ticket T234373
Visible to All Users

Is there any particular reason to set SkinName to UserSkin?

created 10 years ago

[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

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

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.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.