[]
Sets the value of the EnabledProperty attached property for a specified dependency object.
public static void SetEnabled(DependencyObject element, bool? value)
Public Shared Sub SetEnabled(element As DependencyObject, value 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 | Condition |
|---|---|
| ArgumentNullException | Thrown if |