Class SerenityHubToolCard
Generic catalog-entry card: icon, title, description, click-to-launch, and a favorite-toggle star in the top-right corner (UX feedback batch 9, fix 3; toggle wiring extracted to SerenityHubFavoriteToggle in batch 9b so the Validate view's cards can reuse it). Used by the Create, Browse, and Advanced views, and by Home's recents/favorites rows, which render every entry exactly as the catalog defines it (spec §1, §6) — no view hardcodes its own tool list.
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Components
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubToolCard
Constructors
SerenityHubToolCard(SerenityHubToolEntry, SerenityHubIcons, SerenityHubLauncher, SerenityHubFavorites)
Declaration
public SerenityHubToolCard(SerenityHubToolEntry entry, SerenityHubIcons icons, SerenityHubLauncher launcher, SerenityHubFavorites favorites)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityHubToolEntry | entry | |
| SerenityHubIcons | icons | |
| SerenityHubLauncher | launcher | |
| SerenityHubFavorites | favorites |
Properties
Root
Declaration
public VisualElement Root { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
Methods
Activate()
Launches the entry's tool exactly as a click would. Also the activation path a search result reuses when the user presses Enter instead of clicking (spec §4).
Declaration
public void Activate()
ToggleFavorite()
Toggles this entry's favorite state and refreshes the star, WITHOUT launching the tool. This is the method the star's click handler calls after stopping its click event from reaching the whole-card Activate() launcher (UX feedback batch 9, fix 3).
Declaration
public void ToggleFavorite()