How to speed up rendering of vertical scrollbar markers
问题 I have a customized vertical scrollbar which displays markers for selected items in a DataGrid. The problem I'm facing is, when there are a great number of items (e.g. could be 5000 to 50000) there is a lag while it is rendering the markers. With the following code it basically renders as per the selected items index, number of items and height of the track. Obviously this is inefficient and am looking for other solutions. This is my customized vertical scrollbar <helpers