Class VisualStyleBase
Represents the base class for visual styles to define the elements style.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Styles
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class VisualStyleBase : StyleInfoSubObjectBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
VisualStyleBase()
Initializes a new instance of the VisualStyleBase class and associates it with an existing StyleInfoStore.
Declaration
public VisualStyleBase()
VisualStyleBase(StyleInfoSubObjectIdentity, StyleInfoStore)
Initializes a new instance of the VisualStyleBase class and associates it with an existing VisualStyleInfoStore and StyleInfoIdentityBase.
Declaration
protected VisualStyleBase(StyleInfoSubObjectIdentity identity, StyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoIdentityBase that holds the identity for this VisualStyleInfoStore. |
StyleInfoStore | store | A StyleInfoStore that holds data for this object. All changes in this style object will be saved in the StyleInfoStore object. |
VisualStyleBase(VisualStyleInfoStore)
Initializes a new instance of the VisualStyleBase class and associates it with an existing VisualStyleInfoStore.
Declaration
protected VisualStyleBase(VisualStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
VisualStyleInfoStore | store | A VisualStyleInfoStore that holds data for this object. All changes in this style object will be saved in the VisualStyleInfoStore object. |
Methods
GetDefaultStyle()
Provide the default style of the VisualStyleBase.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Default style object. |
Overrides
UpdateStyles(IThemeProvider)
Updates the styles from the XML configured file to the target style.
Declaration
public virtual void UpdateStyles(IThemeProvider control)
Parameters
Type | Name | Description |
---|---|---|
IThemeProvider | control | The control that is defined with the IThemeProvider. |