Adding Scroll View to your control in Silverlight

Silverlight offers ScrollView in case we want to add a scroll to any control we want like DataGrid, StackPanel etc.
Adding ScrollView is quite easy, just enclose your control inside ScrollView.Content like given below:

<ScrollViewer HorizontalScrollBarVisibility="Auto"
                  VerticalScrollBarVisibility="Auto"
                  Height="1130">
<ScrollViewer.Content>

// your control here on which scrool is to be applied

</ScrollViewer.Content>
    </ScrollViewer>

You can set the properties according to your requirements.

Popular Posts