[]
ComboBox also offers many advanced features. These features are listed below:
Represents the currently selected item in the drop-down list.
Represents the index of the SelectedItem in the drop-down list.
Represents the value of the SelectedItem, obtained using the SelectedValuePath.
Represents the name of the property used to get the SelectedValue and SelectedItem.
Set the value of the MaxDropDownHeight property to set the maximum height of the drop-down list.
Set the value of the MaxDropDownWidth property to set the maximum width of the drop-down list.
Determines whether a user can enter values that do not appear on the ComboBox's item list.
Use the VirtualizationThreshold property to set the minimum number of rows and/or columns required to enable virtualization in the ComboBox control. For more information, see Virtualization.
Property | Values | Description |
|---|---|---|
key-action-print-characters | ChangeSelectionOnly / OpenDropdown | • Type to select matching options without opening the dropdown. • Dropdown opens automatically when typing starts. |
key-action-down-arrow | ChangeSelectionOnly / OpenDropdown | • Navigate options with arrow keys. • Opens dropdown when using arrow keys if it is closed. |
key-action-up-arrow | ChangeSelectionOnly / OpenDropdown | Same behavior as down arrow. |
key-action-tab | CloseAndKeepFocus / CloseAndMoveFocus | • CloseAndKeepFocus: Dropdown closes, focus stays on control. • CloseAndMoveFocus: Dropdown closes and focus moves forward. |
aria-labelled-by | User-defined | Defines an ARIA label reference for screen readers to describe the control. |