This example demonstrates how to create a checked combo box. To do this, set the editor's StyleSettings property to CheckedComboBoxStyleSettings:
<dxe:ComboBoxEdit.StyleSettings>
<dxe:CheckedComboBoxStyleSettings />
</dxe:ComboBoxEdit.StyleSettings>
When you enable multiple selection in the ComboBoxEdit, its EditValue property must contain an object of the List<object>
type. In this example, the SelectedItemsConverter
converts the collection of selected Customers
to List<object>
and back.
- Customer.cs (VB: Customer.vb)
- SelectedItemsConverter.cs (VB: SelectedItemsConverter.vb)
- MyViewModel.cs (VB: MyViewModel.vb)
- Window1.xaml (VB: Window1.xaml)