logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ISerenityHubView

    Contract every Hub sidebar view implements (design ADR-9): a stable id for navigation/persistence, the root visual tree the window mounts into its content host, and an explicit refresh hook the window calls each time the view becomes active. One class per view — no shared base class, no god window.

    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Views
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public interface ISerenityHubView

    Properties

    Id

    Stable identifier — one of SerenityHubViewIds.

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

    Root

    The view's root visual tree, mounted into the window's content host.

    Declaration
    VisualElement Root { get; }
    Property Value
    Type Description
    VisualElement

    Methods

    OnShow(SerenityHubContext)

    Rebuilds the view's content from context. Called every time it becomes active.

    Declaration
    void OnShow(SerenityHubContext context)
    Parameters
    Type Name Description
    SerenityHubContext context
    In this article
    © 2026 Serenity. All Rights Reserved