Skip to main content

ComboBox

Description​

Use a combo box when the choices are useful but do not need to stay visible.

ComboBox in light mode ComboBox in dark mode

Open list​

ComboBox drop-down list with choices in light mode ComboBox drop-down list with choices in dark mode

Example usage​

<fluence:ComboBox PlaceholderText="Choose an option..." SelectedIndex="-1">
<ComboBoxItem Content="First item" />
<ComboBoxItem Content="Second item" />
</fluence:ComboBox>

Key properties​

PropertyDefaultPurpose
PlaceholderTextnullText displayed when no item is selected.
IconnullOptional icon content.
CornerRadius4Rounds the field.
DropdownCornerRadius8Rounds the drop-down surface.
DisplayMemberPathEmpty string (WPF default)Member used to display object-backed items.

State and behavior​

Opening the list reveals choices; selection updates SelectedItem and the collapsed label.

Additional behavior​

For object-backed items, DisplayMemberPath specifies the member shown for the selected value when the ComboBox is closed.

Events​

The inherited SelectionChanged event reports a changed selection.

Platform behavior​

Editable selection​

ComboBox.IsEditable=True uses the native WPF text editor. Text, text search, selection, read-only mode, and keyboard behavior follow WPF ComboBox.

ComboBox pointer press​

The closed ComboBox paints a transient pressed fill and border while its nested toggle is pressed. Focused presses keep the focused text and chevron roles, and editable focus keeps its underline. WPF retains click-on-release, typing, text search, and selection behavior.

See text input focus and selection for the shared WPF editor behavior.

Reference​