AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.