title: WPF binding TextBox to integer property without throwing exception
body: <p>I am binding TextBox.Text to <code>int</code> property:</p>
  
  <pre><code>&lt;TextBox Text="{Binding Lines, UpdateSourceTrigger=PropertyChanged}" /&gt;
  
  private int _lines = 10;
  public int Lines
  {
      get { return _lines; }
      set { _lines = value; }
  }
  </code></pre>
  
  <p>everything <em>works as expected</em> with this simple code, there is even validation for the TextBox. There is however exception <code>System.FormatException</code> thrown in the Output log. My question is: <br>
  Is there elegant way to get rid of the exception without reimplementing almost <strong>everything</strong> myself? <br>
  By everything I mean validators, convertors, etc. simply ton of code that does not do anything but call <code>Int32.TryParse</code> instead of <code>Int32.Parse</code>. Not that exception thrown and handled by wpf would be a big problem, but full log makes finding actual problems much more difficult.</p>