Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Comment on "CheckComboBox"

$
0
0
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; } }

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>