This example uses the EnumItemsSourceBehavior to bind the ComboBoxEdit to the UserRole
enumeration:
You can use this behavior with the following controls:
- ListBoxEdit
- ItemsControl
- LookUpEditBase descendants
You can also apply attributes from the System.ComponentModel.DataAnnotations and DevExpress.Mvvm.DataAnnotations namespaces to enumeration members.
- User.cs (VB: User.vb)
- UserRole.cs (VB: UserRole.vb)
- MainView.xaml (VB: MainView.xaml)
- MainViewModel.cs (VB: MainViewModel.vb)