AutomationPeer.IsRequiredForFormCore 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.
Provides the peer's behavior when a Microsoft UI Automation client calls IsRequiredForForm or an equivalent Microsoft UI Automation client API.
protected:
virtual bool IsRequiredForFormCore() = IsRequiredForFormCore;
bool IsRequiredForFormCore();
protected virtual bool IsRequiredForFormCore();
function isRequiredForFormCore()
Protected Overridable Function IsRequiredForFormCore () As Boolean
Returns
bool
true if the element must be completed; otherwise, false.
Remarks
The standard implementation returns false. Overriding this value at the peer level to return true is probably an uncommon scenario, because you are implying that every instance of your control has a required-for-form behavior no matter what app or UI situation it is used for. It's more typical for apps to specify a required-for-form behavior that is declared in the app's XAML UI definitions, by setting AutomationProperties.IsRequiredForForm.