Vixen
dd8b0a81
csharp
public sealed class Select

A field showing one choice, with a list behind it.

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

Fields and properties (12)

  • protected override string TagName

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

  • protected override AccessibleRole NativeRole

    The role this kind of element has when nobody says otherwise.

  • protected override string? NativeAccessibleValue
  • protected override AccessibleStates NativeAccessibleState
  • public string? Value
  • public bool Required
  • public string? Placeholder
  • public Option? Selected

    The option currently chosen, if any.

  • public bool IsValid

    Whether the choice made is acceptable.

  • public static readonly UiPropertyKey ValueProperty

    Identity for Value.

  • public static readonly UiPropertyKey RequiredProperty

    Identity for Required.

  • public static readonly UiPropertyKey PlaceholderProperty

    Identity for Placeholder.

Events (1)

  • public Action<Select, string?>? SelectionChanged

    Raised when the choice 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.

  • 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)
  • public void ClearValue()

    Unsets Value, 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.

  • public void ClearPlaceholder()

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

Used by (57, showing 40)

  • GalleryHelloUi
  • AccessibilityTreeTestsVixen.Ui.Controls.Tests
  • ControlVisualTestsVixen.Ui.Controls.Tests
  • ElementStateBitTestsVixen.Ui.Controls.Tests
  • GradientEditorVixen.Ui.Controls.Advanced
  • GradientEditorTestsVixen.Ui.Controls.Advanced.Tests
  • LiveCombinatorPairTestsVixen.Ui.Controls.Advanced.Tests
  • NestedTagTestsVixen.Ui.Controls.Advanced.Tests
  • OverlayLifetimeTestsVixen.Ui.Controls.Tests
  • PropertyGridVixen.Ui.Controls.Advanced
  • PropertyGridTestsVixen.Ui.Controls.Advanced.Tests
  • SelectionTestsVixen.Ui.Controls.Tests
  • AnimationClipViewVixen.Editor.AssetEditors
  • AnimationGraphViewVixen.Editor.AssetEditors
  • AudioMixerViewTestsVixen.Editor.AssetEditors.Tests
  • BrowserSavedFilterTestsVixen.Editor.App.Tests
  • BuildSettingsTestsVixen.Editor.App.Tests
  • BuildSettingsViewVixen.Editor.App
  • ChoiceDrawerVixen.Editor.Inspector
  • ChromeFixtureVixen.Editor.Ui.Tests
  • CompositorViewVixen.Editor.AssetEditors
  • ConsoleViewVixen.Editor.Ui
  • EditorApplicationVixen.Editor.App
  • EnumDrawerVixen.Editor.Inspector
  • FillRowViewVixen.Editor.Texturing
  • FilterRowViewVixen.Editor.Texturing
  • FontViewVixen.Editor.AssetEditors
  • GridViewTestsVixen.Editor.App.Tests
  • InputActionsViewVixen.Editor.AssetEditors
  • KeyBindingsPanelTestsVixen.Editor.App.Tests
  • KeyBindingsViewVixen.Editor.Ui
  • KeyBindingsViewTestsVixen.Editor.Ui.Tests
  • LayerRowViewVixen.Editor.Texturing
  • LayerStackBindingTestsVixen.Editor.Texturing.Tests
  • LayerStackChromeVixen.Editor.Texturing
  • LayerStackEditingTestsVixen.Editor.Texturing.Tests
  • LayerStackPanelTestsVixen.Editor.Texturing.Tests
  • LayerStackThemeTestsVixen.Editor.Texturing.Tests
  • LayerStackViewVixen.Editor.Texturing
  • MaterialViewVixen.Editor.AssetEditors