title: WPF: How to autosize Path to its container?
body: <p>I have a Path that must resize to its StackPanel container.</p>
  
  <pre><code>&lt;StackPanel x:Name="TrackSurface"&gt;
      &lt;Path Fill="AliceBlue"
            Stroke="Black" StrokeThickness="1"
            Data="{StaticResource TranslateZ}"&gt;
      &lt;/Path&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>I think about using a transformation bound to the container but don't know how to it actually. Can someone give me hint?</p>