Vixen
02b45cc4
csharp
public sealed class RadioButton

One choice among several.

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

Remarks

Belongs to a RadioGroup, which is where the mutual exclusion lives. A radio outside one is a checkbox that cannot be unticked, which is nothing anybody wants — so AddOption is the way to make one.

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 CanUncheck

    Whether activating it while it is already on turns it off.

  • public string? Value
  • public UiElement Box

    The circle the dot is drawn in.

  • public static readonly UiPropertyKey ValueProperty

    Identity for Value.

Methods (2)

  • protected override void OnCreated()

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

  • public void ClearValue()

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

Used by (3)

  • RadioGroupVixen.Ui.Controls
  • SelectionTestsVixen.Ui.Controls.Tests
  • ToggleInteractionTestsVixen.Ui.Controls.Tests