79758394

Date: 2025-09-07 23:16:59
Score: 0.5
Natty:
Report link

It has been solved by modifying the style like

<Style Selector="DataGridCell.right-align > TextBlock">
    <Setter Property="TextAlignment" Value="Right" />
    <Setter Property="Padding" Value="0,0,4,0" />
</Style>

I've tried this before but the class name wasn't at the right place

<Style Selector="DataGridCell > TextBlock.right-align ">
    <Setter Property="TextAlignment" Value="Right" />
    <Setter Property="Padding" Value="0,0,4,0" />
</Style>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Enhakiel