Vixen
dd8b0a81
csharp
public sealed class Segment

One choice in a SegmentedControl.

Read the guide page for this →

Remarks

⚠ A ToggleBase reporting Radio rather than a ToggleButton reporting button. The two look identical and are not the same thing to a screen reader: a strip of three toggle buttons is announced as three independent pressed-or-not buttons, where a segmented control is one question with three answers and has to say "two of three". CanUncheck is false for RadioButton's reason — clicking the chosen segment again must leave it chosen, or the control reaches a state with nothing selected that the keyboard cannot get out of.

Fields and properties (6)

  • protected override string TagName

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

  • protected override AccessibleRole NativeRole
  • protected override bool CanUncheck

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

  • protected override bool ActivatesOnEnter
  • public string? Value
  • public static readonly UiPropertyKey ValueProperty

    Identity for Value.

Methods (1)

  • public void ClearValue()

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

Used by (6)

  • ApplicationBarTestsVixen.Ui.Controls.Tests
  • ImageViewBarTestsVixen.Ui.Controls.Advanced.Tests
  • SegmentedControlVixen.Ui.Controls
  • ImageViewBarWiringTestsVixen.Editor.Texturing.Tests
  • PaintToolTestsVixen.Editor.Texturing.Tests
  • ToolbarPresenterVixen.Editor.Ui