StringFormat in XAML, WPF : Currency Formatting

邮差的信 提交于 2019-12-04 07:58:51
Kim Breugelmans

You can specify the culture in your binding like this:

TextBlock Text="{Binding Value, StringFormat=C, ConverterCulture=nl-BE}" 

nl-BE is belgian culture, you can exchange it with Indian culture info, I don't know that ;-)

Or you can set your current thread to the right culture, so you will use it everywhere in your application:

Thread.CurrentThread.CurrentUICulture = new CultureInfo("hi-IN");
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!