Hi,
Yes, the documention will need to be updated. If you want examples on how to use the Toolkit, please download the LiveExplorer App available on this page : https://wpftoolkit.codeplex.com/.
It contains many examples and you have access to the XAML and code-behind through the LiveExplorer. Unfortunately, it doesn't contains examples with the property "SelectedItemsOverride".
The Property "SelectedItems" is Get only, not Get/Set.
The Property "SelectedItemsOverride" is used to set a list of SelectedItems to the CheckComboBox.
Here's how to use it :
<xctk:CheckComboBox x:Name="_checkComboBox"
Width="125"
Height="22"
ItemsSource="{Binding MyCollection}"
SelectedItemsOverride="{Binding MySelectedObjects}">
</xctk:CheckComboBox>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
_checkComboBox.DataContext = this;
this.MyCollection = new ObservableCollection<int>() { 1, 2, 3, 4, 5 };
this.MySelectedObjects = new ObservableCollection<int>() { this.MyCollection[ 0 ], this.MyCollection[ 2 ] };
}
public ObservableCollection<int> MyCollection
{ get; set; }
public ObservableCollection<int> MySelectedObjects
{ get; set; }
}
↧