This is a migrated thread and some comments may be shown as answers.

[Solved] vertical scroll thumb changes size

2 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 05 Jan 2011, 07:12 PM
Hi,

I think I made an inadvertent change to my code and now I notice that the thumb/slider/wheel in the vertical scrollbar starts large and as the user scrolls changes length.  Could someone tell me how to set this to a fixed size.

FWIW, this happened during a conversion to MVVM.

Thanks,

jerry

2 Answers, 1 is accepted

Sort by
0
Jerry Kurata
Top achievements
Rank 1
answered on 05 Jan 2011, 09:16 PM
A couple of observations.

1) If I set RowVirtualization to false the scrollbar thumb is small and works as expected.  But, of course, performance is poor with a lot of rows.

2)The UIVirtualization demo of 50 millon rows show the correct behavior, thumb is small. 

0
Jerry Kurata
Top achievements
Rank 1
answered on 05 Jan 2011, 10:33 PM
I figured out the problem.  I bind the RowHeight as RowHeight="{Binding CurrentRowHeight}".  I forgot to initialize CurrentRowHeight under certain conditions, so it was set to 0.  This caused the grid to get confused.
Tags
GridView
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Jerry Kurata
Top achievements
Rank 1
Share this question
or