Skip to main content

GetFocus Method

Gets the currently focused element.

Definition

Namespace: Avalonia.Automation.Provider
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

AutomationPeer? GetFocus()
View Source

Return Value

AutomationPeer

Remarks

WindowsIRawElementProviderFragmentRoot.GetFocus
macOSUIAccessibility.accessibilityFocusedUIElement

See Also

Reference

IRootProvider Interface
Avalonia.Automation.Provider Namespace