[]
Sets the value of the EnabledProperty attached property for a specified dependency object.
public static bool SetEnabled(DependencyObject element, bool? value)
Public Shared Function SetEnabled(element As DependencyObject, value As Boolean?) As Boolean
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element on which to set the property. |
| bool? | value | The new value indicating whether automation is enabled for the element.
When set to |
| Type | Description |
|---|---|
| bool |
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |