This is a migrated thread and some comments may be shown as answers.

Default left alignement

3 Answers 65 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sébastien Dias
Top achievements
Rank 2
Sébastien Dias asked on 17 Feb 2012, 03:01 PM
Since 2012.1.215.1050 version my NumericUpDown was align left by default, and HorizontalContentAlignment property has no effect.

3 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 20 Feb 2012, 02:46 PM
Hi Sebastien,

Thank you for bringing this issue to our attention.

It has been fixed and the fix will be available in the nearest LIB. We are sorry for the inconvenience.


Kind regards,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Raphael
Top achievements
Rank 1
answered on 02 Aug 2012, 05:29 PM
No workaround ???
0
Georgi
Telerik team
answered on 07 Aug 2012, 07:31 AM
Hello Raphael,

The issue is fixed and the fix is available since Q2 2012 and  you can test in in our demos. If you don't want to upgrade, as a workaround you can edit the template of the NumericUpDown. In it you need to add HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" as followed :

telerik:StyleManager.Theme="{StaticResource Theme}"
                                    Padding="{TemplateBinding Padding}"
                                    BorderBrush="Transparent" Background="Transparent"
                                    BorderThickness="0"
                                    IsTabStop="False"
                                    VerticalScrollBarVisibility="Auto"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />

I am attaching simple project showing how you can achieve that.
Hope this will help.

All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
NumericUpDown
Asked by
Sébastien Dias
Top achievements
Rank 2
Answers by
Dani
Telerik team
Raphael
Top achievements
Rank 1
Georgi
Telerik team
Share this question
or