WPF: How to autosize Path to its container?
I have a Path that must resize to its StackPanel container. <StackPanel x:Name="TrackSurface"> <Path Fill="AliceBlue" Stroke="Black" StrokeThickness="1" Data="{StaticResource TranslateZ}"> </Path> </StackPanel> I think about using a transformation bound to the container but don't know how to it actually. Can someone give me hint? I changed the Stackpanel to Grid and Stretch property of the Path to Fill. <Grid x:Name="TrackSurface"> <Path Fill="AliceBlue" Stretch="Fill" Stroke="Black" StrokeThickness="1" Data="M148,28 C221,133 110.50025,119.5 110.50025,119.5 L124.50016,68.5 z"> </Path> Any