RadNumericUpDown right justify?

0 Answers 13 Views
NumericUpDown
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
Bradley asked on 10 Apr 2025, 07:19 PM

This should be trivial, but.... I see an old question about this at HorizontalContentAlignment doesn't work in UI for WPF | Telerik Forums.  When I download the sample, it works as advertised, even if I upgrade to the latest.  However, in my project I can't seem to get the text to right-justify.  This is a direct copy of my XAML:

<telerik:RadNumericUpDown Grid.Row="9" Grid.Column="1" Width="100" NumberDecimalDigits="0" Value="{Binding MyIntField}" HorizontalContentAlignment="Right" />

And yet...

If I inspect the field in the live tree, "HorizontalContentAlignment" shows "Right".

What have I got wrong?

 

Martin Ivanov
Telerik team
commented on 11 Apr 2025, 12:38 PM

Hey Bradley, I've tested the project from the forum with its original version and also with the latest release. I also tried with different Telerik themes, but the HorizontalContentAlignment always works on my side. Can you double check for any custom style or templates related to the RadNumericUpDown control? Also, feel free to send over a sample project reproducing the problem.

No answers yet. Maybe you can help?

Tags
NumericUpDown
Asked by
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or