WPF TextBox binding to decimal respecting culture -


i've bound textbox decimal. problem ist, binding using american numerical standards, using dot decimals separation ("1.5")

my system german , configured use colon decimals separation ("1,5").

i need textbox binding show , use colon instead of dot separate decimals.

how binding respect set localization/culture settings numerical input?

read this article. should set default language framework elements:

public partial class app : application {     static app()     {         frameworkelement.languageproperty.overridemetadata(             typeof(frameworkelement),             new frameworkpropertymetadata(                 xmllanguage.getlanguage(cultureinfo.currentculture.ietflanguagetag)));     } } 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -