我有以下XAML代码:的Windows Phone 8的TextBlock切割文本关闭XAML
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="#FFE8E8E8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,0" >
<TextBlock x:Name="AppName" Text="Agent" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0" Foreground="Black" />
<TextBlock x:Name="PageName" Text="agent audit" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Height="100" Foreground="Black"/>
</StackPanel>
<Grid x:Name="ContentPanel" Grid.Row="1" Background="White"/>
<ScrollViewer HorizontalAlignment="Left" Margin="0,0,0,0" Grid.Row="1" VerticalAlignment="Top">
<TextBlock x:Name="auditText" HorizontalAlignment="Left" Margin="0,0,0,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Foreground="Black" Padding="10"/>
</ScrollViewer>
</Grid>
当页面映入眼帘我给你用的API调用的内容(审计日志文本)TextBlock的,这变得相当长。
但是,目前它会截断屏幕高度下的所有文本。我将TextBlock和ScrollView设置为自动布局高度/宽度。
我甚至可以看到下一行文本的顶部,当我滚动其余的时候没有出现。很难截图,因为你只能在滚动时看到问题,而滚动时我无法截图:/
任何想法,哪里出错了?
我已经在这个网站上看过无数帖子,但是没有什么能打到我之后的东西。
谢谢。
哦地狱当真?就是这样......哈哈,我正在从我的耻辱中走出来。干杯:) –