2,854 questions
Not that hard but it took a while to figure out! I've to extend a ListBox
with two DependencyProperty
, Total and Selected. In OnSelectionChanged
I've to set the Selected = SelectedItems.Count
and in OnItemsChanged
I've to set Total = Items.Count
. Those Total and Selected can be bound to ViewModel's property.