Class SerenityHubLearnView
Curated documentation view (spec §7, design ADR-9), rendered as three card sections (visual-coherence pass) instead of hand-built rows so it matches every other catalog-driven view: "Guides" (Designer Quickstart, Sample Scene Guide, the Cookbooks folder), "Tools" (the AI Agent Skills installer, looked up as a catalog entry and launched the same way any tool card is), and "Reference" (a link to the generated DocFX site that degrades gracefully — never throws, never silently no-ops — when the site has not been built yet).
Implements
Inherited Members
Namespace: Serenity.Hub.Infrastructure.Editor.Views
Assembly: Serenity.UnityHub.Infrastructure.Editor.dll
Syntax
public sealed class SerenityHubLearnView : ISerenityHubView
Constructors
SerenityHubLearnView(Func<bool>)
Declaration
public SerenityHubLearnView(Func<bool> docFxSiteExists = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<bool> | docFxSiteExists |
Properties
Id
Stable identifier — one of SerenityHubViewIds.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Root
The view's root visual tree, mounted into the window's content host.
Declaration
public 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
public void OnShow(SerenityHubContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityHubContext | context |