views:

31

answers:

1

[Update] I see I need the full example to explain.

In my Windows Phone 7 App, I got a page containing a TextBox bound to a Decimal "Amount":

<TextBox Text="{Binding Amount,Mode=TwoWay}" InputScope="CurrencyAmount"/>

The phone settings are set to German. In german localization, a value like 1234.56m would be formatted 1.234,56 (unlike the US, where it should be 1,234.56).

Problem is, when I enter a value like 1.234,56 in the textbox, the content will be interpreted for US, resulting in 1.23456m, when it should have been 1234.56m.

So, how do I get the binding on the WP7 to use the current phone culture instead of a generic US one? In Germany people expect to enter a colon for decimals instead of a dot.

A: 

Aside from the Settings app's region & language section?

The silverlight related localization stuff is all here at msdn.

There's another windows phone 7 specific localization blog post too.

John Gardner
Seems my question was confusing: I added the problem source to my question.
Sam