logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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

    SetCrossMenuConfig(bool, bool)

    Enables cross-menu focus traversal between this host's menu children (up/down at boundaries).

    Declaration
    void SetCrossMenuConfig(bool enabled, bool wrapAround)
    Parameters
    Type Name Description
    bool enabled

    Whether traversal is on.

    bool wrapAround

    Whether traversal wraps the whole stack vs stops at the ends.

    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).

    In this article
    © 2026 Serenity. All Rights Reserved