Skip to main content

IsEnabledCore Property

Allows a derived class to override the enabled state of the control.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected override bool IsEnabledCore { get; }

Property Value​

Boolean

Remarks​

Derived controls may wish to disable the enabled state of the control without overwriting the user-supplied IsEnabled setting. This can be done by overriding this property to return the overridden enabled state. If the value returned from IsEnabledCore should change, then the derived control should call UpdateIsEffectivelyEnabled().

See Also​

Reference​

Button Class
Avalonia.Controls Namespace