如何将组合框项目的对齐方式更改为右对齐?

how to change align of combobox item to right?

我按照 xaml codeWPF (.net 4.5.1) 中创建了一个 combobox,如何将 itemsalignment 更改为 right喜欢图片吗?

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

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