Vixen
02b45cc4
csharp
public sealed class Card

A surface with an optional header and footer.

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

Remarks

⚠ The body exists from the start and the other two do not. A card is nearly always just a body, and an empty header still costs its padding — there is no :empty in the selector language, so a theme cannot collapse one it was given. Asking for Header is what creates it, which makes "has a header" and "was given a header" the same fact.

Fields and properties (5)

  • protected override string TagName

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

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Body

    Where the card's content goes.

  • public UiElement Header

    The strip above the body, created the first time it is asked for.

  • public UiElement Footer

    The strip below it, created the first time it is asked for.

Methods (1)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

Used by (2)

  • ShellHelloUi
  • ControlVisualTestsVixen.Ui.Controls.Tests