[]
        
(Showing Draft Content)

C1.WinUI.Core.AutomationProperties.GetEnabled

GetEnabled Method

GetEnabled(DependencyObject)

Gets the current effective value of the EnabledProperty attached property for a specified dependency object.

Declaration
public static bool GetEnabled(DependencyObject element)
Public Shared Function GetEnabled(element As DependencyObject) As Boolean
Parameters
Type Name Description
DependencyObject element

The element from which to read the property.

Returns
Type Description
bool

true if automation is enabled for the element; otherwise, false. The value is determined according to the standard precedence rules of dependency properties, including local value, inheritance, and the global default.

Exceptions
Type Condition
ArgumentNullException

Thrown if element is null.