Hi,
I have a datagrid which shows lots of realtime data which is calculated by very CPU intensive calculations. I had an idea to reduce CPU usage which is to only calculate these values for rows that are visible on the screen. Is it possible to determine whether a row is visible on the screen and bind it to the row's view model? For example I would want to be able to implement:
public class RowViewModel
{
// True when row is visible in the view
public bool IsVisible { get; set; }
}
If I scroll down and the row goes out of view, IsVisible should become false.
If not, any advice on how to determine a row's visibility on screen would helpful. Thanks.
Zia