Delen via


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 const& element, bool const& value);
public static void SetIsRequiredForForm(DependencyObject element, bool value);
function setIsRequiredForForm(element, value)
Public Shared Sub SetIsRequiredForForm (element As DependencyObject, value As Boolean)

Parameters

element
DependencyObject

The DependencyObject for which to set the property.

value
Boolean

bool

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

Applies to

See also