Interface ICrossMenuHost
Implemented by a composite that hosts a stack of menus and coordinates cross-menu focus traversal: when a menu reaches a navigation boundary it asks its host to move focus to the adjacent sibling.
Namespace: Serenity.Ui.Application.Interfaces.Views
Assembly: Serenity.Ui.Application.dll
Syntax
public interface ICrossMenuHost
Methods
TryMoveFocus(IFocusableMenuView, bool)
Moves input focus from current to the adjacent sibling menu in the stack —
the next one when forward (down past the last option), the previous one
otherwise (up past the first). Focuses the sibling's first option (forward) or last option
(backward) and clears current's highlight.
Declaration
bool TryMoveFocus(IFocusableMenuView current, bool forward)
Parameters
| Type | Name | Description |
|---|---|---|
| IFocusableMenuView | current | The menu focus is leaving. |
| bool | forward | True for downward/next, false for upward/previous. |
Returns
| Type | Description |
|---|---|
| bool | True when focus moved to a sibling; false when at the stack end with wrap-around off (stop). |