This project has moved and is read-only. For the latest updates, please go here.

Property to be checked by default in CheckComboBox

Feb 6, 2014 at 5:26 AM
Hi,

What is the Property to be set in CheckComboBox be default in WPF.Here is my code

<xctk:CheckComboBox x:Name="_combo" Style="{StaticResource CheckComboBoxStyle}"
                         HorizontalAlignment="Center" 
                         VerticalAlignment="Center" 
                         DisplayMemberPath="Title"     
ItemsSource="{Binding}" />


Thanks,
Prasant
Developer
Feb 6, 2014 at 2:07 PM
Hi,

You can create a new Collection based on the ItemSource and pass it to CheckComboBox.SelectedItemsOverride ;
ObservableCollection<UserObject> newCollection = new ObservableCollection<UserObject>( myItemSourceList );
_combo.SelectedItemsOverride = newCollection ;