ComboBox
A drop-down list control.
Common Properties
Property
Description
SelectedIndex
Gets or sets the index of the selected item.
SelectedItem
Gets or sets the selected item.
SelectedItems
Gets the selected items.
AutoScrollToSelectedItem
Gets or sets a value indicating whether to automatically scroll to newly selected items.
SelectionMode
Gets or sets the selection mode.
IsDropDownOpen
Gets or sets a value indicating whether the dropdown is currently open.
MaxDropDownHeight
Gets or sets the maximum height for the dropdown list.
Reference
Source code
Examples
Basic ComboBox
ComboBox with custom item templates
ComboBox with binding
This example binds the fonts installed to a ComboBox
With this code behind:
最后更新于
这有帮助吗?