小编Emi*_*dın的帖子

堆栈面板中的水平对齐问题

当我在堆栈面板中添加 2 个文本块时,文本块的 Horizo​​ntalAlignment 设置不起作用

这是什么原因?

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)

c# wpf xaml

1
推荐指数
1
解决办法
201
查看次数

标签 统计

c# ×1

wpf ×1

xaml ×1