logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ContainerNode

    A container region realized as a composite-view asset: it arranges Children with a flexbox Direction and either stacks them (STACK) or shows one at a time (SWITCHER, driven by a navbar).

    Inheritance
    object
    ContainerNode
    Implements
    IRegionNode
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Ui.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
    Syntax
    public sealed class ContainerNode : IRegionNode

    Constructors

    ContainerNode()

    Declaration
    public ContainerNode()

    Properties

    Children

    The child regions placed inside this container, in layout order.

    Declaration
    public List<IRegionNode> Children { get; set; }
    Property Value
    Type Description
    List<IRegionNode>

    CompositeId

    The id assigned to the generated composite-view asset for this container.

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

    ContentMode

    Whether children stack together or only the active one shows (switcher).

    Declaration
    public ContainerContentMode ContentMode { get; set; }
    Property Value
    Type Description
    ContainerContentMode

    CrossMenuNavigation

    STACK: enable up/down focus traversal between this container's stacked menus.

    Declaration
    public bool CrossMenuNavigation { get; set; }
    Property Value
    Type Description
    bool

    CrossMenuWrapAround

    When cross-menu navigation is on, wrap around the stack vs stop at the ends.

    Declaration
    public bool CrossMenuWrapAround { get; set; }
    Property Value
    Type Description
    bool

    Direction

    The flexbox direction (project convention: ROW = stacked rows, COLUMN = side-by-side columns).

    Declaration
    public LayoutDirection Direction { get; set; }
    Property Value
    Type Description
    LayoutDirection

    FocusInitialView

    SWITCHER: route initial input to the default content vs the nav rail.

    Declaration
    public bool FocusInitialView { get; set; }
    Property Value
    Type Description
    bool

    Gap

    The gap between adjacent children, in pixels.

    Declaration
    public float Gap { get; set; }
    Property Value
    Type Description
    float

    InitialActiveChildId

    For a switcher, the child shown first; empty starts blank.

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

    IsAlwaysShowingContent

    SWITCHER: show the default child on first show vs start blank. Default true.

    Declaration
    public bool IsAlwaysShowingContent { get; set; }
    Property Value
    Type Description
    bool

    ScrollAxis

    The axis this container scrolls along when Scrollable is true.

    Declaration
    public LayoutScrollAxis ScrollAxis { get; set; }
    Property Value
    Type Description
    LayoutScrollAxis

    Scrollable

    Whether this container scrolls its overflowing content.

    Declaration
    public bool Scrollable { get; set; }
    Property Value
    Type Description
    bool

    Size

    The main-axis size this region occupies inside its parent container.

    Declaration
    public LayoutSize Size { get; set; }
    Property Value
    Type Description
    LayoutSize

    Implements

    IRegionNode
    In this article
    © 2026 Serenity. All Rights Reserved