Windows phone 7 在ScrollViewer for windows phone 8中未显示大文本

Windows phone 7 在ScrollViewer for windows phone 8中未显示大文本,windows-phone-7,windows-phone-8,Windows Phone 7,Windows Phone 8,我在ScrollViewer中有一个文本框。(windows Phone 8) 当我尝试在文本框中粘贴大量文本时,某些部分可见,而某些部分被截断,类似这样的情况 使用调试器,我可以看到文本框正在获取全文,它只是不可见 你知道怎么解决这个问题吗?滚动查看器的高度应该小于文本框的高度,以便平滑滚动。硬编码高度不是正确的方法,但仍然要理解,请尝试为ScrollViewer设置height=“400”,为ScrollViewer中的TextBox设置height=“700”。希望它能解决问题。Gr

我在ScrollViewer中有一个文本框。(windows Phone 8)


当我尝试在文本框中粘贴大量文本时,某些部分可见,而某些部分被截断,类似这样的情况

使用调试器,我可以看到文本框正在获取全文,它只是不可见


你知道怎么解决这个问题吗?

滚动查看器的高度应该小于文本框的高度,以便平滑滚动。硬编码高度不是正确的方法,但仍然要理解,请尝试为ScrollViewer设置height=“400”,为ScrollViewer中的TextBox设置height=“700”。希望它能解决问题。

Grid.Row=“2”中是否有占用空间的内容?如何定义网格行?您是否尝试将scrollviewer/TextBox的垂直对齐设置为拉伸?网格行定义是什么?
<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>