Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AutomationPeer.SetFocusCore 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 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


Feedback

Was this page helpful?