【发布时间】:2025-12-01 02:10:02
【问题描述】:
代码:
<code>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Key1:" FontSize="20" Foreground="#73000000" TextWrapping="Wrap"/>
<Grid><TextBlock Text="Small Value1" FontSize="20" TextWrapping="Wrap" />
</Grid>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Key2:" FontSize="20" Foreground="#73000000" TextWrapping="Wrap"/>
<Grid>
<TextBlock Text="Long Long Long Long Long LongLongLong Long Long LongValue2" FontSize="20" TextWrapping="Wrap" />
</Grid>
</StackPanel>
</code>
图片截图:
如果值比屏幕长,我需要将值转移到新行。
【问题讨论】:
标签: xaml windows-phone-8.1 stackpanel