logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RouterMenuTransitionateToView

    Transition use case that routes through the top-level IViewRouter so a transition target may be a menu OR a composite custom view. The router shows the target via whichever subsystem owns it and deactivates the currently shown view as a whole — so navigating to/from a composite hides/shows the entire composite, not just an inner hosted menu.

    Inheritance
    object
    RouterMenuTransitionateToView
    Implements
    ISyncUseCase<MenuTransitionateToViewInput>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Application.UseCases
    Assembly: Serenity.Menu.Application.dll
    Syntax
    public class RouterMenuTransitionateToView : ISyncUseCase<MenuTransitionateToViewInput>, IUseCase
    Remarks

    This replaces the menu-only hide-then-show (which resolved ids through the menu presenter's view-model dictionary and therefore could not target composites) and the lazy-build decorator (the menu provider still builds lazy menus on show via the router).

    Constructors

    RouterMenuTransitionateToView(IViewRouter)

    Creates the transition over the view router.

    Declaration
    public RouterMenuTransitionateToView(IViewRouter router)
    Parameters
    Type Name Description
    IViewRouter router

    The top-level router used to resolve and show the target view.

    Methods

    Execute(MenuTransitionateToViewInput)

    Shows the target view by id through the router, which hides the current top-level view first. The source id is not used explicitly — the router tracks and deactivates the current view, so this works identically whether the source is a menu or a composite.

    Declaration
    public void Execute(MenuTransitionateToViewInput input)
    Parameters
    Type Name Description
    MenuTransitionateToViewInput input

    The transition input carrying the source and target view ids.

    Implements

    ISyncUseCase<TInput>
    IUseCase
    In this article
    © 2026 Serenity. All Rights Reserved