How do I set the size of an image within a ListView?
<p>How do I set the size of an image within a ListView?</p>

<p>The targeted device is Windows Phone 10 (i.e. Windows Universal Platform).</p>

<p>I've discovered the following <a href="https://developer.xamarin.com/guides/xamarin-forms/user-interface/listview/customizing-cell-appearance/#ImageCell" rel="noreferrer">documentation</a>:</p>

<blockquote>
  <p>Note that when targeting Windows Phone 8.1, ImageCell will not scale
  images by default. Also, note that Windows Phone 8.1 is the only
  platform on which detail text is presented in the same color and font
  as primary text by default. Windows Phone 8.0 renders ImageCell as
  seen below:</p>
</blockquote>

<p><strong>I've tried:</strong></p>

<pre><code>&lt;ListView Grid.Row="1" ItemsSource="{Binding Photos}" SelectedItem="{Binding SelectedPhoto, Mode=TwoWay}"&gt;
  &lt;ListView.ItemTemplate&gt;
    &lt;DataTemplate&gt;
      &lt;ImageCell ImageSource="{Binding ImageSource}" Text="{Binding Description}" TextColor="Silver" /&gt;
    &lt;/DataTemplate&gt;
  &lt;/ListView.ItemTemplate&gt;
&lt;/ListView&gt;
</code></pre>

<p>The above image shows a full-blown image without confining the size of the image to fit as a listview item.</p>

<p><strong>I've also tried:</strong></p>

<pre><code>&lt;ListView Grid.Row="1" ItemsSource="{Binding Photos}" SelectedItem="{Binding SelectedPhoto, Mode=TwoWay}"&gt;
  &lt;ListView.ItemTemplate&gt;
    &lt;DataTemplate&gt;
      &lt;Image Source="{Binding ImageSource}" Aspect="AspectFit" /&gt;
    &lt;/DataTemplate&gt;
  &lt;/ListView.ItemTemplate&gt;
&lt;/ListView&gt;
</code></pre>

<p>The above code doesn't show any image. It just shows a white background.</p>