I create a Textbox in Code behinde and bind it to a double Property.
TextBox t = new TextBox();
t.Width = 80;
t.DataContext = s;
Binding binding = new Binding();
binding.Mode = BindingMode.TwoWay;
binding.Path = new PropertyPath("Value");
BindingOperations.SetBinding(t, TextBox.TextProperty, binding);
When I enter a value like 45,45 (comma) it is parsed to 4545.
If I enter 45.45 (point) it is parsed correctly with 45,45.
I use German language Settings and my decimal separator is ,
.
What am I doing wrong?