locked
ScrollViewer doesn't scroll RRS feed

  • Question

  • Hi,

    I have a Grid which has 2 columns. The second column is a ScrollViewer.

    I am expecting the ScrollViewer to have the same height as the first column and scroll if needed. However, it doesn't scroll unless I set a Height on it.

    How to make it scroll and with the height same as the first column?

    Thanks.

    Wednesday, August 7, 2013 6:54 PM

Answers

  • Try following code

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition  Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
    
                <ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Visible">
    
                </ScrollViewer>
            </Grid>

    Post your code if above code doesn't work.


    Gaurav Khanna | Microsoft VB.NET MVP | Microsoft Community Contributor

    Wednesday, August 7, 2013 7:03 PM