title: Bind textbox to float value. Unable to input dot / comma
body: <p>When I try to input a DOT or a COMMA in a textbox, for example <code>1.02</code> or <code>83,33</code> the textbox prevents me to input such a value (and the input turns red). The textbox is bound to a float property. Why?</p>
  
  <p>I have bound a textbox to a float Property <code>Power</code> of a class implementing <code>INotifyPropertyChanged</code>.</p>
  
  <pre><code>private float _power;
  
  public float Power
  {
      get { return _power; }
      set
      {
          _power = value;
          OnPropertyChanged("Power");
      }
  }
  </code></pre>
  
  <p>In Xaml</p>
  
  <pre><code>&lt;TextBox Name="txtPower" Height="23" TextWrapping="Wrap" Text="{Binding Path=Power, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"&gt;&lt;/TextBox&gt;
  </code></pre>
  
  <p>I have no custom validation at all right now.</p>
  
  <p>Also tried decimal but it does not work either. For string everything works fine.</p>