Saturday 3 August 2013

Windows Phone - How to make TextBlock scrollable

To make your windows phone textbox a scrollable one, just wrap the textbox within a ScrollViewer element. Do not forget to add textwrapping for the textbox. Set the vertical or horizontal scroll settings according to your needs.
<ScrollViewer>
    <TextBlock TextWrapping="Wrap" x:Name="txtbox1">
</TextBlock>
</ScrollViewer>

No comments:

Post a Comment