logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityHubNavigator

    Tracks which Hub sidebar view is currently active (design ADR-9): NavigateTo(string, object) switches the current view id, persists it under ISerenityHubKeyValueStore so it survives a domain reload within the same session, and raises Navigated so the window shell (Slice 6) can swap its content host and highlight the matching sidebar entry. First run — nothing persisted yet — lands on Home. The navigator itself never builds or owns any view; it only tracks which one is active.

    Inheritance
    object
    SerenityHubNavigator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Navigation
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public sealed class SerenityHubNavigator

    Constructors

    SerenityHubNavigator()

    Declaration
    public SerenityHubNavigator()

    SerenityHubNavigator(ISerenityHubKeyValueStore)

    Declaration
    public SerenityHubNavigator(ISerenityHubKeyValueStore store)
    Parameters
    Type Name Description
    ISerenityHubKeyValueStore store

    Properties

    CurrentViewId

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

    Methods

    NavigateTo(string, object)

    Switches the active view to viewId, persists it, and notifies subscribers. An optional payload carries extra context a view may use once shown (e.g. which validator kind to scroll to).

    Declaration
    public void NavigateTo(string viewId, object payload = null)
    Parameters
    Type Name Description
    string viewId
    object payload

    Events

    Navigated

    Raised after CurrentViewId changes, carrying the new view id and optional payload.

    Declaration
    public event Action<string, object> Navigated
    Event Type
    Type Description
    Action<string, object>
    In this article
    © 2026 Serenity. All Rights Reserved