ValueFormat MVVM & Multi Language

2 posts, 0 answers
  1. David
    David avatar
    3 posts
    Member since:
    May 2014

    Posted 23 Mar 2015 Link to this post

    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?
  2. David
    David avatar
    3 posts
    Member since:
    May 2014

    Posted 23 Mar 2015 in reply to David Link to this post

    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.
Back to Top