title: WPF bind textblock to parent property
body: <p>I know this type of question has been answered previously, but I just started with <code>WPF</code> a week ago. I have the following scenario where i need to bind a <code>Textblock</code>'s <code>Text</code> property to it's parent <code>Grid</code>'s <code>Width</code> property entirely from XAML. So, if the <code>Gird</code>'s <code>Width</code> is <code>50</code>, then <code>Textblock</code>'s <code>Text</code> value should be <code>50</code> as well. Below is my XAML :</p>
  
  <pre><code> &lt;Grid x:Name=MyGrid" Margin="112,11,0,0"&gt;
    &lt;Rectangle x:Name="ColorRect" Fill="Blue" Width="10" HorizontalAlignment="Left"/&gt;
    &lt;TextBlock x:Name="ValueTextBlock" Text=""/&gt;
   &lt;/Grid&gt;
  </code></pre>
  
  <p>Is it possible to bind the <code>Text</code> property of the <code>Textblock</code> to the <code>Grid</code>'s(myGrid) <code>Width</code> property and also include a <code>%</code> at the end of the text ? Say, if <code>Width</code> = <code>50</code> ,then <code>TextBlock</code>'s <code>Text</code> would be <code>50%</code> ??
  Any help will be appreciated as i am totally new to this.</p>