79821849

Date: 2025-11-17 01:49:34
Score: 0.5
Natty:
Report link

This was because ComboBoxItem.HorizontalContentAlignment is set to Left by default. The issue can be fixed by applying a global style such as:

new Style(s => s.Is<ComboBoxItem>())
{
    Setters =
    {
        new Setter(ComboBoxItem.HorizontalContentAlignmentProperty, HorizontalAlignment.Stretch),
    },
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zacoons