Sep 14, 2012 at 11:47 AM
Edited Sep 14, 2012 at 12:37 PM
Great control. But I have one small issue with it:
It seems that the scrolling is allowed to go so far as to make only the last line visible (the height/width of the extent is set to double the line count minus 1).
The odd effect of this is that the scroll handle changes size and makes it difficult to scroll. The Windows Explorer icon view (which seems to use a similar layout) does not allow scrolling further than to make the last n lines visible (where n is the size
of the viewport).
I tried to set _extent.Width to _abstractPanel.SectionCount but that made the measuring go on for ever.
Is there a good way to make the extent size constant no matter the scroll position?
Should add that the "forever measuring/resize" only occurs when the extent is smaller or equal to the viewport (ie when all items are visible). If scrolling is possible than it works just as I want (it only scrolls until the last line is visible
at the bottom of the viewport).