title: WPF textblock binding in XAML
body: <p>I'm updating some existing WPF code and my application has a number of textblocks defined like this:</p>
  
  <pre><code>&lt;TextBlock x:Name="textBlockPropertyA"&gt;&lt;Run Text="{Binding PropertyA}"/&gt;&lt;/TextBlock&gt;
  </code></pre>
  
  <p>In this case, "PropertyA" is a property of my business class object defined like this:</p>
  
  <pre><code>public class MyBusinessObject : INotifyPropertyChanged
  {
      private void OnPropertyChanged(PropertyChangedEventArgs e)
      {
          if (PropertyChanged != null)
          {
              PropertyChanged(this, e);
          }
      }
  
      private string _propertyA;
      public string PropertyA
      {
          get { return _propertyA; }
          set
          {
              if (_propertyA == value)
              {
                  return;
              }
  
              _propertyA = value;
              OnPropertyChanged(new PropertyChangedEventArgs("PropertyA"));
          }
      }
  
      // my business object also contains another object like this
      public SomeOtherObject ObjectA = new SomeOtherObject();
  
      public MyBusinessObject()
      {
          // constructor
      }
  }
  </code></pre>
  
  <p>Now I have a TextBlock that I need to bind to one of the properties of ObjectA which, as you can see, is an object in MyBusinessObject.  In code, I'd refer to this as:</p>
  
  <pre><code>MyBusinessObject.ObjectA.PropertyNameHere
  </code></pre>
  
  <p>Unlike my other bindings, "PropertyNameHere" isn't a direct property of MyBusinessObject but rather a property on ObjectA.  I'm not sure how to reference this in a XAML textblock binding. Can anyone tell me how I'd do this?  Thanks!</p>