Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF toolkit CheckListBox SelectedItemsOverride not working
    primarykey
    data
    text
    <p>I have a check list box from the wpf toolkit 2. I cannot get all of the selected items. I read that I am supposed to use SelectedItemsOverride to get all of my selected items but it does not seem to work. I put a break point in the setter for TestClassSelected but it is never fired. Any Ideas?</p> <pre><code>&lt;xctk:CheckListBox Name="MyCheckList" ItemsSource="{Binding TestClassCollection}" DisplayMemberPath="DisplayName" SelectedItemsOverride="{Binding TestClassSelected}" /&gt; </code></pre> <p>.</p> <pre><code>public IEnumerable&lt;TestClass&gt; TestClassCollection { get { return _testClassCollection; } set { _testClassCollection = value; OnPropertyChanged("TestClassCollection"); } } public List&lt;TestClass&gt; TestClassSelected { get { return _testClassSelected; } set { _testClassSelected = value; OnPropertyChanged("TestClassSelected"); } } </code></pre> <p>.</p> <pre><code>public class TestClass { public String FirstName { get; set; } public String LastName { get; set; } public String DisplayName { get { return string.Format("{0} {1}", FirstName, LastName); } } } </code></pre> <p>This is my test data I have been using.</p> <pre><code>TestClassCollection = new List&lt;TestClass&gt; { new TestClass {FirstName = "FIrstName", LastName = "LastName"}, new TestClass {FirstName = "Brad", LastName = "Holder"}, new TestClass {FirstName = "Sam", LastName = "Ryans"}, new TestClass {FirstName = "Ryan", LastName = "Thomas"}, new TestClass {FirstName = "Lee", LastName = "Rod"}, new TestClass {FirstName = "Amanda", LastName = "Gustaf"}, new TestClass {FirstName = "Chris", LastName = "Holems"}, new TestClass {FirstName = "Doug", LastName = "Schnitzel"}, new TestClass {FirstName = "Lisa", LastName = "Bull"}, new TestClass {FirstName = "Fred", LastName = "Simpson"}, new TestClass {FirstName = "Scott", LastName = "Rogers"} }; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload