locked
Vertical scrollbar issue RRS feed

  • Question

  • I have a scrollbar inside of a grid and it stretches to the size of a grid. Here's xaml

            <!-- scroll bar -->
            <ScrollBar x:Name="sbEDBScroll" Grid.Column="3" Grid.RowSpan="2" Orientation="Vertical"></ScrollBar>

    When I move the scroller on scroll bar to the very bottom, few steps before the end of a scrollbar it starts stretching regardless if a use a button on a bottom or move the tip. When tip reaches the end of scroll bar, scrollbar overflows the grid.

    Is that a bug or what do I do wrong?

    Thursday, September 18, 2008 10:59 AM

Answers

  • I have encountered exactly the same issue today...

    I have found that the problem goes away if you explicitly set the ViewPortSize field.

     Why this should be? I know not...

     

    Friday, September 19, 2008 10:05 AM

All replies

  • I have encountered exactly the same issue today...

    I have found that the problem goes away if you explicitly set the ViewPortSize field.

     Why this should be? I know not...

     

    Friday, September 19, 2008 10:05 AM
  • Yeah, I discovered the same thing yesterday, definitely helps. Thanks.

    Friday, September 19, 2008 11:12 AM