AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) Method

Definition

Sets the value of the AutomationProperties.IsRequiredForForm attached property for the specified DependencyObject.

public : static void SetIsRequiredForForm(DependencyObject element, bool value)
static void SetIsRequiredForForm(DependencyObject element, bool value) const;
public static void SetIsRequiredForForm(DependencyObject element, Boolean value)
Public Shared Sub SetIsRequiredForForm(element As DependencyObject, value As Boolean)

Parameters

element
DependencyObject DependencyObject

The DependencyObject for which to set the property.

value
Boolean Boolean

true to specify that the element is required to be filled out on a form; otherwise, false.