如何改变组合框项目的对齐方式?

时间:2015-06-25 12:25:41

标签: c# wpf combobox

我按照comboboxWPF(.net 4.5.1)中创建xaml code,如何将alignment items更改为right像图像?

<ComboBox    x:Name="cmbPost"            Grid.Row="2"  Grid.Column="0"         TabIndex="6"            Width="150" Margin="5" Height="22" VerticalAlignment="Top" HorizontalAlignment="Right">

enter image description here

1 个答案:

答案 0 :(得分:2)

尝试将HorizontalContentAlignment="Right"添加到您的组合框