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

Cannot set ValueFormat in Xaml

3 Answers 77 Views
NumericBox
This is a migrated thread and some comments may be shown as answers.
Miroslav
Top achievements
Rank 1
Miroslav asked on 24 Mar 2016, 08:24 PM

Hello,

I want to set ValueFormat as integer. I tried this ValueFormat="{}{0,0:N0}", resp. I change format in designer and get this in Xaml. But when I build, I get error "Cannot assign to nullable type on property Value". How can I set ValueFormat in Xaml without error?

Best Regards

Miroslav Mareš

3 Answers, 1 is accepted

Sort by
0
Miroslav
Top achievements
Rank 1
answered on 25 Mar 2016, 03:39 PM

Hello,

I'm sorry, I take back what I wrote before... this error make this declaration Value="100" and not ValueFormat definition. ValueFormat works right. But I still not understand, why this error occurred...

Best Regards

Miroslav Mareš

0
Ivaylo Gergov
Telerik team
answered on 28 Mar 2016, 01:56 PM
Hi Miroslav,

This is because the Xaml stack in WinRT cannot resolve nullable types and the Value property is of double? type.

I hope this helps.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Miroslav
Top achievements
Rank 1
answered on 02 Apr 2016, 04:24 PM

OK, thank you.

Best Regards

Miroslav Mareš

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