Telerik UI for Windows Phone by Progress

The CheckedItems collection is a specialized collection that contains all currently checked items. This collection exposes methods which can be used to check/uncheck items as well. Following methods are exposed by the CheckedItems collection:

  • Add - this method accepts an item from the source collection. When an item is added to the CheckedItems collection by using this method, it is considered checked. The ItemCheckedStateChanging and ItemCheckedStateChanged events are fired.
  • Remove - this method accepts an item from the source collection. When an item is removed from the CheckedItems collection by using this method, it is considered unchecked. The ItemCheckedStateChanging and ItemCheckedStateChanged events are fired.
  • RemoveAt - this method accepts an index of an item and performs the same operation as the Remove method for the item at the index specified as an input parameter.
  • CheckAll - this method accepts no parameters and performs a batch operation which checks all available items in the source collection. The ItemCheckedStateChangingand ItemCheckedStateChanged events are fired for each source item.
  • CheckRange - this method accepts a startIndex and count parameters which are used to check a range of items from the source collection. The ItemCheckedStateChanging and ItemCheckedStateChanged events are fired for each source item.
  • Clear - this method accepts no parameters and performs a batch operation which unchecks all currently checked items. The ItemsCheckedStateChanging and ItemCheckedStateChanged events are fired for each item. The CollectionChanged event is also fired for each item with Remove action.
  • UncheckRange - this method accepts a startIndex and a count which are used to uncheck a range of items from the source collection. The ItemCheckedStateChanging and ItemCheckedStateChanged events are fired for each item.
Note
The Insert method is not implemented since it does not semantically fit into the context of the CheckedItemsCollection. In other words, an item is either in the collection or out of it (checked or unchecked) - it does not matter where exactly the item is in the collection.
Besides using the API of the CheckedItems collection to modify its contents, it is also modified when the end-user checks or unchecks items by tapping on a visual container in RadDataBoundListBox when the IsCheckModeActive property is set to true.