Syncfusion.Shared.Base


CanOverrideStyle Property (BaseControl)

Gets or sets a value indicating whether control elements styles can be overridden by theme style settings.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("Specifies whether the control elements styles can be overridden by theme style settings.")>
<CategoryAttribute("Theme")>
Public Property CanOverrideStyle As Boolean
'Usage
 
Dim instance As BaseControl
Dim value As Boolean
 
instance.CanOverrideStyle = value
 
value = instance.CanOverrideStyle
[DefaultValue()]
[Description("Specifies whether the control elements styles can be overridden by theme style settings.")]
[Category("Theme")]
public bool CanOverrideStyle {get; set;}

Property Value

Default value is false.
Remarks
By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. This property should be enabled or disabled before calling the ThemeName property of the control.
AssemblyVersion

Syncfusion.Shared.Base: 17.3460.0.14

See Also