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

ValueFormat MVVM & Multi Language

1 Answer 63 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.
David
Top achievements
Rank 1
David asked on 23 Mar 2015, 05:19 PM
I'm trying to figure out how to set the Value Format for multiple languages and I'm getting issues.
What I want is for the NumericBox to say  "Show 17%".
I'm able to achieve this by setting the NumericBox ValueFormat directly to "{}{0:Show #0%}".  The problem is I'd also like this to work with multi languages, .ie. for Spanish "Mostrar 17%".  My first try was to set UID.  In my Resources.resw I've tried {}{0:Show #0%}, {0:Show #0%}, 0:Show #0% and they don't work.  I've also tried setting this by binding ValueFormat to a viewmodel property and it doesn't work that way either. 

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 23 Mar 2015, 05:28 PM
I was able to get it to work through the ViewModel Property using {0:Show #0%}.  I still had UID set and was getting errors from that.  Once I removed UID, it worked perfectly.
Tags
NumericBox
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or