Large Text not being displayed in ScrollViewer for windows phone 8

182 views Asked by At

I am having a TextBox inside a ScrollViewer. (windows Phone 8)

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <ScrollViewer HorizontalAlignment="Left" VerticalAlignment="Top" Width="456" UseLayoutRounding="True" ManipulationMode="Control" IsHitTestVisible="True">
            <TextBox HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Width="456" AcceptsReturn="True"/>
        </ScrollViewer>
</Grid>

When I try to paste large amount of text in the TextBox, some part is visible and some part is truncated, something like this.!

enter image description here

Using Debugger I can see that the TextBox is getting the full text, it is just not visible.

Any Idea, how to get around this ?

1

There are 1 answers

0
pg90 On

ScrollViewer height should be smaller than TextBox height, to have smooth scrolling. Hard coding height is not the correct way, but still to understand try setting Height="400" for ScrollViewer and Height="700" for TextBox inside ScrollViewer. Hope it clears the problem.