ComboBox
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class ComboBox : System.Windows.Controls.ComboBox
Fluent-styled combo box with placeholder, icon, and rounded dropdown. Authority: WinUI 3 ComboBox_themeresources.xaml (FocusedStates / EditableFocusedStates VSM groups - WI-3 C18). Diverging from stock WPF, this control auto-selects index 0 when its items populate while SelectedIndex is still -1 and has never been explicitly set.
Base type: System.Windows.Controls.ComboBox (including inherited WPF and .NET members)
Constructors
ComboBox
public ComboBox()
Creates a new ComboBox instance.
Properties
CornerRadius
public CornerRadius CornerRadius { get; set; }
Gets or sets the corner radius of the combo box.
DropdownCornerRadius
public CornerRadius DropdownCornerRadius { get; set; }
Gets or sets the corner radius of the dropdown popup.
Icon
public object Icon { get; set; }
Gets or sets the icon displayed in the combo box.
IsDropDownOpenedUpward
public bool IsDropDownOpenedUpward { get; }
Gets whether the dropdown is currently displayed above the control.
PlaceholderText
public string PlaceholderText { get; set; }
Gets or sets the placeholder text displayed when no item is selected.
SelectedContent
public object SelectedContent { get; }
Gets the content of the currently selected item.
SelectedText
public string SelectedText { get; }
Gets the text representation of the currently selected item.
Methods
OnApplyTemplate
public override void OnApplyTemplate()
Documentation inherited from the ComboBox API.
OnDropDownClosed
protected override void OnDropDownClosed(EventArgs e)
Documentation inherited from the ComboBox API.
OnDropDownOpened
protected override void OnDropDownOpened(EventArgs e)
Documentation inherited from the ComboBox API.
OnGotFocus
protected override void OnGotFocus(RoutedEventArgs e)
Documentation inherited from the ComboBox API.
OnItemsChanged
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Documentation inherited from the ComboBox API.
OnLostFocus
protected override void OnLostFocus(RoutedEventArgs e)
Documentation inherited from the ComboBox API.
OnSelectionChanged
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Documentation inherited from the ComboBox API.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
Identifies the CornerRadius dependency property.
DropdownCornerRadiusProperty
public static readonly DependencyProperty DropdownCornerRadiusProperty
Identifies the DropdownCornerRadius dependency property.
IconProperty
public static readonly DependencyProperty IconProperty
Identifies the Icon dependency property.
IsDropDownOpenedUpwardProperty
public static readonly DependencyProperty IsDropDownOpenedUpwardProperty
Identifies the IsDropDownOpenedUpward dependency property.
PlaceholderTextProperty
public static readonly DependencyProperty PlaceholderTextProperty
Identifies the PlaceholderText dependency property.
SelectedContentProperty
public static readonly DependencyProperty SelectedContentProperty
Identifies the SelectedContent dependency property.
SelectedTextProperty
public static readonly DependencyProperty SelectedTextProperty
Identifies the SelectedText dependency property.