logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuLazyRegistration

    Minimal per-menu data required to build a LazyOnFirstOpen menu's Unity view on first show.
    Holds only the menu-specific inputs (id, definition, eagerly-created view-model); shared build inputs live once on UnityMenuLazyBuildContext. Intentionally stores no built view reference — the view does not exist until the menu is first shown.

    Inheritance
    object
    UnityMenuLazyRegistration
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Infrastructure.Services
    Assembly: Serenity.UnityMenu.Infrastructure.dll
    Syntax
    public class UnityMenuLazyRegistration

    Constructors

    UnityMenuLazyRegistration(string, IMenuSettingsDefinition, IViewModel)

    Initializes a new lazy registration.

    Declaration
    public UnityMenuLazyRegistration(string menuId, IMenuSettingsDefinition menuSettings, IViewModel viewModel)
    Parameters
    Type Name Description
    string menuId

    The menu identifier.

    IMenuSettingsDefinition menuSettings

    The menu definition.

    IViewModel viewModel

    The eagerly-created view-model for this menu.

    Properties

    MenuId

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

    The menu identifier (matches the registration dictionary key).

    MenuSettings

    Declaration
    public IMenuSettingsDefinition MenuSettings { get; }
    Property Value
    Type Description
    IMenuSettingsDefinition

    The menu definition used to build the view.

    ViewModel

    Declaration
    public IViewModel ViewModel { get; }
    Property Value
    Type Description
    IViewModel

    The view-model created eagerly during installation and bound to the view when built.

    In this article
    © 2026 Serenity. All Rights Reserved