/// <summary> /// Sets the value of the <see cref="Selector.IsSelectedProperty"/> dependency property /// for every item in the selection collection. /// </summary> public void SetIsSelectedOnAllItems(Boolean isSelected) { for (var current = selections.First; current != null; current = current.Next) { Selector.SetIsSelected(current.Value.Container, isSelected); } }