ObservableCollection<T>implements Colletion<T>, which implements IEnumerable, so that you can do this (if you are looking for a range that matches the given criteria):
foreach(var item in observerableCollection.Where(i => i.prop == someVal))
{
item.PropertyToChange = newValue;
}
Or an arbitrary range (in this case, it takes points 10 - 40):
foreach(var item in observableCollection.Skip(10).Take(30))
{
item.PropertyToChange = newValue;
}
source
share