title: WPF TextBox Height Equals Parent Height minus 50 pixels?
body: <p>I'm successfully getting a TextBox to resize with a parent Border height but I need the TextBox to actually be 50 pixels smaller in height than the parent Border.</p>
  
  <p>Any ideas how to achieve this?</p>
  
  <p>The code I'm using is</p>
  
  <pre><code>&lt;Border VerticalAlignment="Stretch" HorizontalAlignment="Stretch" &gt;
       &lt;TextBox x:Name="txtActivityNotes" HorizontalAlignment="Stretch" Height="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Border}}, Path=ActualHeight}" AcceptsReturn="True" VerticalContentAlignment="Top" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto" /&gt;
  &lt;/Border&gt;
  </code></pre>