Jaa


AutomationPeer.IsRequiredForFormCore Method

Definition

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

Boolean

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.

Applies to

See also