Skip to main content

FocusNavigator Class

Namespace: GHIElectronics.TinyCLR.UI.Input · Assembly: GHIElectronics.TinyCLR.UI

PC-style tab order over the logical tree. Call from hardware mappings (e.g. next/previous) via InputProvider.RaiseFocusNavigation.

public static class FocusNavigator

Methods

TryMoveFocus(bool forward)

public static bool TryMoveFocus(bool forward)

Moves keyboard focus to the next or previous tab stop under Application.MainWindow.

ParameterTypeDescription
forwardbool

Returns bool — True if focus was moved or already on a valid target.

TryMoveFocus(bool forward, UIElement scope)

public static bool TryMoveFocus(bool forward, UIElement scope)

Moves focus within the subtree rooted at scope.

ParameterTypeDescription
forwardbool
scopeUIElement

Returns bool