title: Allow input only 2 decimals (C# + WindowsPhone)
body: <p>I am using this code to allow only input 1 decimal point. It runs fine. But how I can do it to allow  input only 2 numbers after decimal point?</p>
  
  <p>C#</p>
  
  <pre><code> private void txtPrecio_KeyDown(object sender, KeyEventArgs e)
      {
          TextBox txt1 = (TextBox)sender;
  
          if (txt1.Text.Contains(".") &amp;&amp; e.PlatformKeyCode == 190)
          {
              e.Handled = true;
          }           
      }
  </code></pre>