Answer the question
In order to leave comments, you need to log in
How to quickly scroll through a collection?
Good afternoon. Please help to optimize the code with the following inputs:
- there is a grid, with about 10k records of my class;
- there is a collection that stores the selected records;
- there are two variables that return the sum of the elements in the selected records:
public virtual double TotalDebet => SelectedEntries.Sum(item => item.Debet);
public virtual double TotalCredit => SelectedEntries.Sum(item => item.Credit);
protected void OnSelectedEntriesChanged()
{
this.RaisePropertyChanged(x => x.TotalCredit);
this.RaisePropertyChanged(x => x.TotalDebet);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question