Skip to main content

SkinManager.GetSkinElement(SkinProductId, ISkinProvider, String) Method

Returns a skin element with the specified name of a control in the specified product displayed using the specified skin provider.

Namespace: DevExpress.Skins

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public static SkinElement GetSkinElement(
    SkinProductId productId,
    ISkinProvider provider,
    string elementName
)

Parameters

Name Type Description
productId DevExpress.Skins.SkinProductId

A DevExpress.Skins.SkinProductId enumeration value that specifies the product in which the required element is contained.

provider DevExpress.Skins.ISkinProvider

An object implementing the DevExpress.Skins.ISkinProvider interface that is used for painting controls.

elementName String

A String value that specifies the name of the required element.

Returns

Type Description
DevExpress.Skins.SkinElement

A DevExpress.Skins.SkinElement object that represents a skin element of a control.

Remarks

You can get an access code to any skin element in Skin Editor. To do this, right-click this element in the Elements panel, and choose “Element Access Code…”.

SkinEditor_GenerateAccessCodeForSkinElement

See the Creating New Skins topic to learn how to create custom skins in Skin Editor.

See Also