AutomationPeer.IsRequiredForFormCore AutomationPeer.IsRequiredForFormCore AutomationPeer.IsRequiredForFormCore 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 Platform::Boolean IsRequiredForFormCore()
virtual bool IsRequiredForFormCore() const;
protected virtual bool IsRequiredForFormCore()
Protected Overridable Function IsRequiredForFormCore() As bool

Returns

bool 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.

See also