Default left alignement

4 posts, 0 answers
  1. Sébastien Dias
    Sébastien Dias avatar
    3 posts
    Member since:
    Mar 2006

    Posted 17 Feb 2012 Link to this post

    Since 2012.1.215.1050 version my NumericUpDown was align left by default, and HorizontalContentAlignment property has no effect.
  2. Dani
    Dani avatar
    848 posts

    Posted 20 Feb 2012 Link to this post

    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,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Raphael
    Raphael avatar
    15 posts
    Member since:
    Jan 2011

    Posted 02 Aug 2012 Link to this post

    No workaround ???
  4. Georgi
    Georgi avatar
    362 posts

    Posted 07 Aug 2012 Link to this post

    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"
                                        HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />

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

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top