logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CompositeChildNavState

    A view-browser history entry representing a composite custom view's detail state — "restore composite CompositeViewId to child ChildViewId" (empty = the nav-only, no-detail state).

    Inheritance
    object
    CompositeChildNavState
    Implements
    IViewBase
    IFoundationSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Ui.Application.Navigation
    Assembly: Serenity.Ui.Application.dll
    Syntax
    public sealed class CompositeChildNavState : IViewBase, IFoundationSettings
    Remarks

    It is never shown directly: a menu's Go-Back recognizes this entry by type and replays it via ICompositeViewService.ActivateChild, restoring the detail region in place — so the persistent nav rail stays visible instead of the router hiding the whole top-level view. This lets opening and closing a detail region be ordinary view-browser navigation rather than a bespoke signal.

    Constructors

    CompositeChildNavState(string, string)

    Creates a detail-state history entry.

    Declaration
    public CompositeChildNavState(string compositeViewId, string childViewId)
    Parameters
    Type Name Description
    string compositeViewId

    The composite to restore.

    string childViewId

    The child to activate on restore (empty = nav-only).

    Properties

    ChildViewId

    The child id to activate on restore; empty restores the nav-only (no detail) state.

    Declaration
    public string ChildViewId { get; }
    Property Value
    Type Description
    string

    CompositeViewId

    Id of the composite (a SWITCHER) whose detail child this entry restores.

    Declaration
    public string CompositeViewId { get; }
    Property Value
    Type Description
    string

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Synthetic id; this entry is never resolved by the router, only matched by type.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    Methods

    Hide()

    No-op: this marker entry is never hidden directly.

    Declaration
    public void Hide()

    Initialize(ILogService)

    No-op: no initialization needed for a data-only history entry.

    Declaration
    public void Initialize(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    Show()

    No-op: this marker entry is never shown; Go-Back restores via ActivateChild.

    Declaration
    public void Show()

    Implements

    IViewBase
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved