在我的 Windows Phone 应用程序中,我使用的是richtextbox
<ScrollViewer Margin="0,0,0,0" VerticalAlignment="Top">
<StackPanel Margin="0,0,0,0" Width="Auto" >
<RichTextBox x:Name="Browser" Foreground="Black" Height="Auto" cxi:WebBrowserHelper.Html="{Binding BrowserHtml}" Background="Transparent" HorizontalAlignment="Left" VerticalAlignment="Top" Width="460" Margin="0,0,0,0" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" />
</StackPanel>
</ScrollViewer>
但并非所有文本都显示。我该如何解决这个问题?
更新1
在我输入高度 = 700 之后:(见第二张图片)
更新2
<StackPanel Margin="0,0,0,0" Width="480" Orientation="Vertical">
<ScrollViewer Margin="0,0,0,0" VerticalAlignment="Top" Height="1000" >
<StackPanel Margin="0,0,0,0" Width="Auto" >
<RichTextBox x:Name="Browser" Foreground="Black" Height="1000" cxi:WebBrowserHelper.Html="{Binding BrowserHtml}" Background="Transparent" HorizontalAlignment="Left" Width="460" Margin="0,0,0,0" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" />
</StackPanel>
</ScrollViewer>
</StackPanel>