Skip to main content

ClearFocus Method

Clears currently focused element.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[UnstableAttribute("This API might be removed in 11.x minor updates. Please consider focusing another element instead of removing focus at all for better UX.")]
void ClearFocus()
View Source

See Also

Reference

IFocusManager Interface
Avalonia.Input Namespace