Skip to main content

ClearFocus Method

Unstable.

Note: This API is unstable and may change in a future release.

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