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

Alignment, Maximum, CustomUnit...

1 Answer 61 Views
NumericBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Geoffrey
Top achievements
Rank 1
Geoffrey asked on 24 Apr 2015, 01:58 PM

Hi,

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,

Geoffrey

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 29 Apr 2015, 01:24 PM
Hi,

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" />
</Style>
where:
xmlns:numericBox="using:Telerik.UI.Xaml.Controls.Input.NumericBox"

- 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.

Regards,
Ivaylo Gergov
Telerik
 

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

 
Tags
NumericBox
Asked by
Geoffrey
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or