Alignment, Maximum, CustomUnit...

Thread is closed for posting
2 posts, 0 answers
  1. Geoffrey
    Geoffrey avatar
    5 posts
    Member since:
    May 2014

    Posted 24 Apr 2015 Link to this post


    I have some questions about the RadNumericBox :
    - How to right align the value (I try HorizontalContentAlignment without success) ?
    - How to not specify a maximum value in xaml ? I think we can set Double.Nan or Double.Maximum in code behind.
    - Can we have a CustomUnit property like in WPF ?
    - Generally, the documentation of UI for Windows Universal is very poor compared to WPF document ... Do you plan to improve that ?

    Thanks in advance,


  2. Ivaylo Gergov
    Ivaylo Gergov avatar
    691 posts

    Posted 29 Apr 2015 Link to this post


    Thank you for contacting us.

    Directly onto your questions:

    - You can change the alignment of the value string like this:
    <Style TargetType="numericBox:NumericTextBox">
        <Setter Property="TextAlignment" Value="Right" />

    - By default, the control's maximum is 100d, so you can change the RadNumericBox.Maximum to Double.MaxValue in code behind, because I think the xaml synthax does not allow to type such value.

    - Custom format can be achieved through the ValueFormat property. For example:
    <input:RadNumericBox ValueFormat="{}{0:0 custom}" />

    - I admit the WPF documentation is more complete, while of course, it is a lot more mature suite. I can assure you that we are constantly working on improving our online documentation. Your feedback is highly appreciated.

    I hope this helps. Please, let me know should you have any other questions or suggestions.

    Ivaylo Gergov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top