当我在堆栈面板中添加 2 个文本块时,文本块的 HorizontalAlignment 设置不起作用
这是什么原因?
Xml:
<Border Grid.Column="1" Background="#312a28">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Name="current_page" Text="ÖZET" VerticalAlignment="Center" Foreground="White" FontSize="16"/>
<TextBlock Name="next_page" Text="KASA" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="White" FontSize="16"/>
</StackPanel>
</Border>
Run Code Online (Sandbox Code Playgroud)