TcxLookAndFeelController.SkinName Property
Specifies the name of the active skin in an application.
Declaration
property SkinName: TdxSkinName read; write;
Property Value
Type | Description |
---|---|
TdxSkinName | The name of the active skin. The specified skin is in effect when the NativeStyle property is set to Refer to the Remarks section for detailed information on available options. |
Remarks
Use the SkinName
property to apply a built-in or custom skin to all controls if the NativeStyle property is set to False
. The LookAndFeel.SkinName property of an individual control has priority over the SkinName
property.
To apply a built-in skin to an application, assign the corresponding skin name to the SkinName
property.
Custom Skin
To use a custom skin, do the following:
- Launch the Skin Editor to create a new skin.
- Call the dxSkinsUserSkinLoadFromFile, dxSkinsUserSkinLoadFromFileByIndex, dxSkinsUserSkinLoadFromFile, or dxSkinsUserSkinLoadFromStreamByIndex global function to load a skin from a SKINRES file or stream.
- Assign the
'UserSkin'
string to theSkinName
property at runtime.
Limitations
You can load and apply custom skins only at runtime. At design time, you can apply only built-in skins.
Default Value
The SkinName
property’s default value is the cxDefaultLookAndFeelSkinName global constant.