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
SerenityHubNavigator
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubNavigator
Constructors
SerenityHubNavigator()
Declaration
public SerenityHubNavigator()
SerenityHubNavigator(ISerenityHubKeyValueStore)
Declaration
public SerenityHubNavigator(ISerenityHubKeyValueStore store)
Parameters
Properties
CurrentViewId
Declaration
public string CurrentViewId { get; }
Property Value
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
Events
Navigated
Raised after CurrentViewId changes, carrying the new view id and optional payload.
Declaration
public event Action<string, object> Navigated
Event Type