【发布时间】:2014-01-06 21:29:51
【问题描述】:
如何在 XAML Windows 8.1 上使元素居中?在全屏应用星号后设置边距时,我看到:
<ProgressRing Name="Load"
IsActive="True"
HorizontalAlignment="Stretch"
Margin="672,373,674,373"
VerticalAlignment="Stretch"
Foreground="White"/>
<TextBlock Margin="528,466,526,256"
TextWrapping="Wrap"
Text="Caricamento..."
FontSize="50"
IsRightTapEnabled="False"
IsHoldingEnabled="False"
IsDoubleTapEnabled="False"
IsTapEnabled="False"
Foreground="White"/>
在程序员模式下,我看到了这个:
【问题讨论】:
-
horizontalALignment = "center"?
-
使用居中水平和垂直对齐并移除边距