Dela via


AutomationPeer.SetFocusCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls SetFocus or an equivalent Microsoft UI Automation client API.

protected:
 virtual void SetFocusCore() = SetFocusCore;
void SetFocusCore();
protected virtual void SetFocusCore();
function setFocusCore()
Protected Overridable Sub SetFocusCore ()

Remarks

The standard implementation uses IsKeyboardFocusable to determine whether the peer reports that the owner can be focused. FrameworkElementAutomationPeer adds behavior that performs the actual focus operation if it is possible.

Applies to

See also