Skip to main content

IsEnabledCore Property

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

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

protected virtual 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

InputElement Class
Avalonia.Input Namespace