title: How to make large image fit to small stackpanel in xaml?
body: <p>I have a StackPanel and an image. My image is larger than StackPanel so it just display a part of image. My expectation is image will fit to stackpanel and preserves its native aspect ratio.</p>
  
  <pre><code>&lt;StackPanel x:Name="IllustrationStackPanel" Orientation="Vertical"&gt;
              &lt;Image x:Name="IllustrationImage"
                     Source="a.png"
                     HorizontalAlignment="Center"
                     VerticalAlignment="Top"
                     Stretch="None"
                     Margin="0,0,0,0"/&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>could you give me some solution? Thanks</p>