The WPF ComboBox control is a rich, multiselect combo box implementation that provides a flexible dropdown list with support for single and multiple selection. Delimiters are used to separate the selected items. The control’s rich feature set includes a select-all option, checkboxes in dropdown items, and the easy customization of its appearance using templates.
The WPF ComboBox supports ItemsSource binding and displays the data based on display member. It allows you to design the application in MVVM pattern such as binding selected value.
The WPF ComboBox makes the selection from dropdown listbox easy from dropdown listbox with support for multiple selection and confirmation button in the dropdown. Supports selected item appearance customization.
Single selection allows users to select a single item from the dropdown listbox.
Built-in CheckBox allows users to select more than one item in the ComboBox with complete keyboard support.
Select all items from the ComboBox dropdown in one click.
Performs selection after user confirmation using OK and Cancel buttons similar to Excel.
Customized delimiter helps separate the selected items displayed in the ComboBox.
Users can find a suggestion list of filtered items in the drop-down of the ComboBox and edit multiple items in the display text area using tokens.
Users can override the selected items programmatically by using the OnItemChecked and OnItemUnchecked methods of the ComboBox.
Watermarks provide additional hints to users about the data to be selected from the listed values.
Localizes the static text to any of the desired language.
The WPF ComboBox Supports right to left (RTL) direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.
Dropdown list items can be customized with image or custom control using templates.
The WPF ComboBox provides various built-in themes like Office2016, Office2013, Metro, Blend, etc., which help adopt the control based on the application UI.
Easily get started with the WPF ComboBox using a few simple lines of XAML and C# code example as demonstrated below. Also explore our WPF ComboBox Example that shows you how to render and configure the combo box in WPF.
<syncfusion:ComboBoxAdv Height="30" Width="200"
HorizontalAlignment="Center"
VerticalAlignment="Center" >
<syncfusion:ComboBoxItemAdv Content="Denmark" />
<syncfusion:ComboBoxItemAdv Content="New Zealand" />
<syncfusion:ComboBoxItemAdv Content="Canada" />
<syncfusion:ComboBoxItemAdv Content="Russia" />
<syncfusion:ComboBoxItemAdv Content="Japan" />
</syncfusion:ComboBoxAdv>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
ComboBoxAdv comboBoxAdv = new ComboBoxAdv()
{
Height = 30,
Width = 200,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center
};
ComboBoxItemAdv item1 = new ComboBoxItemAdv() { Content = "Denmark" };
ComboBoxItemAdv item2 = new ComboBoxItemAdv() { Content = "New Zealand" };
ComboBoxItemAdv item3 = new ComboBoxItemAdv() { Content = "Canada" };
ComboBoxItemAdv item4 = new ComboBoxItemAdv() { Content = "Russia" };
ComboBoxItemAdv item5 = new ComboBoxItemAdv() { Content = "Japan" };
comboBoxAdv.Items.Add(item1);
comboBoxAdv.Items.Add(item2);
comboBoxAdv.Items.Add(item3);
comboBoxAdv.Items.Add(item4);
comboBoxAdv.Items.Add(item5);
this.Content = comboBoxAdv;
}
}
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.