public sealed class MultiSelectA field showing several choices at once.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The list stays open as options are picked. A multi-select that closed on each choice would make choosing three things three separate journeys — which is what a single select is for. It closes on Escape, on a click outside, and on Enter.
Fields and properties (9)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override AccessibleRole NativeRoleThe role this kind of element has when nobody says otherwise.
protected override AccessibleStates NativeAccessibleStatepublic string? Placeholderpublic bool Requiredpublic IReadOnlyCollection<string> ValuesThe values currently chosen.
public bool IsValidWhether what is chosen is acceptable.
public static readonly UiPropertyKey PlaceholderPropertyIdentity for Placeholder.
public static readonly UiPropertyKey RequiredPropertyIdentity for Required.
Events (1)
public Action<MultiSelect>? SelectionChangedRaised when the set of chosen values changes.
Methods (7)
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
public void Revalidate()Republishes the verdict.
public bool Select(string value, bool isSelected)Chooses or unchooses a value.
protected override void OnOptionAdded(Option option)Called after an option is added, so a subclass can set its initial state.
protected override void OnOptionChosen(Option option)Called when an option in the list is activated.
public void ClearPlaceholder()Unsets Placeholder, so it takes its default or its ancestor's value again.
public void ClearRequired()Unsets Required, so it takes its default or its ancestor's value again.
Used by (6)
- AccessibilityTreeTestsVixen.Ui.Controls.Tests
- ElementStateBitTestsVixen.Ui.Controls.Tests
- FieldValidationTestsVixen.Ui.Controls.Tests
- LiveCombinatorPairTestsVixen.Ui.Controls.Advanced.Tests
- SelectionTestsVixen.Ui.Controls.Tests
- EnumDrawerVixen.Editor.Inspector