如何正确对齐xaml网格

时间:2012-07-31 18:37:56

标签: c# asp.net wpf xaml

HI这个视图需要是正确的,当前是左对齐的,只需要使用哪个命令。?

<GridViewColumn DisplayMemberBinding="{Binding Unit}"
                                Header="Nursing Unit"
                                Width="70" />
                <GridViewColumn DisplayMemberBinding="{Binding Day}"
                                Header="Day"
                                Width="55" />
                <GridViewColumn DisplayMemberBinding="{Binding Eve}"
                                Header="Eve"
                                Width="55" />
                <GridViewColumn DisplayMemberBinding="{Binding Night}"
                                Header="Night"
                                Width="55" />

1 个答案:

答案 0 :(得分:0)

将Grid属性FlowDirection设置为“RightToLeft”。