title: TextBox - Bound Property Name
body: <p>I have a list of TextBoxes which are bound to different properties.</p>
  
  <pre><code>&lt;TextBox Text="{Binding Name, Mode=TwoWay,ValidatesOnDataErrors=True, ValidatesOnExceptions=True, NotifyOnValidationError=True}" VerticalAlignment="Center" Margin="5" Width="300" Grid.Column="1" Grid.Row="1" LostFocus="TextBox_Validate"/&gt;
  </code></pre>
  
  <p>I would like to write ONE handler such as </p>
  
  <pre><code>private void TextBox_Validate(object sender, RoutedEventArgs e)
          {
              var textBox = (sender as TextBox);
              if(textBox!=null)
              {
                  var propertyName = X; // Get propertyName textBox.Text is bound to.
                  CurrentDataContext.ValidateFields("Name"); // Name in this specific textBox
              }
          }
  </code></pre>
  
  <p>Is it possible to get the name of the property so I won't have to write many different methods that do the same thing?</p>