Interface IFocus
Service interface for programmatic focus navigation.
Resolved via this.GetService<IFocus>() from any View.
RootView provides the default implementation.
public interface IFocus
Properties
FocusedView
Gets or sets the view that currently holds keyboard focus.
Setting to null clears focus. Setting fires OnBlur() /
OnFocus() on the affected views.
View? FocusedView { get; set; }
Property Value
Methods
Next()
Moves focus to the next focusable element (same order as Tab).
void Next()
Previous()
Moves focus to the previous focusable element (same order as Shift+Tab).
void Previous()