Vixen
02b45cc4
csharp
public sealed class Link

Text that goes somewhere when it is activated.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Nothing here navigates. A link raises ClickEvent and carries a Href, and what that means is the application's — a URL to open, a document to switch to, an asset to reveal in a browser. A UI framework that shelled out to a system browser on click would be a UI framework that can open arbitrary URLs on behalf of a game's content, which is a security decision no widget should be making.

Activated by Enter rather than Space, which is what a link does everywhere: Space scrolls.

Fields and properties (3)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • public string? Href
  • public static readonly UiPropertyKey HrefProperty

    Identity for Href.

Methods (1)

  • public void ClearHref()

    Unsets Href, so it takes its default or its ancestor's value again.