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
Post a Comment