title: Xamarin Forms how to fill Image view horizontal and expand vertically?
body: <p>I have a problem making my <strong>ImageButton</strong>'s width fixed and the <strong>Height</strong> will be changed with the size of the image that I use in the <strong>ImageButton</strong>, I use the <strong>ImageButton</strong> multiple times in a <strong>Scrollview</strong>, I use <strong>Visual Studio</strong> to create a <strong>Cross-Platform App</strong> using <strong>Xamarin</strong>, So what I used to solve my problem are <a href="https://stackoverflow.com/questions/42193754/xamarin-forms-image-size-mismatch?rq=1">here</a> and <a href="https://forums.xamarin.com/discussion/65902/how-do-i-fix-the-size-of-an-image" rel="nofollow noreferrer">here</a>, But I wasn't able to solve it using anything, And this is a picture that describes what I want:-
  <a href="https://i.stack.imgur.com/VJsX0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VJsX0.png" alt="enter image description here"></a></p>
  
  <p>And please don't make it duplicate if there's answers for my question because I am new to <strong><em>Xamarin Forms</em></strong> And I didn't find any answer exactly to my question, And this is my code:-</p>
  
  <pre><code>&lt;Frame CornerRadius="10"  OutlineColor="#fce9cc" Padding="4" Margin="15" VerticalOptions="StartAndExpand" 
         HasShadow="True" x:Name="ViewLayout" x:FieldModifier="public" BackgroundColor="Black"&gt;
          &lt;StackLayout&gt;
              &lt;Label x:Name="filmNameLabel_1"  HorizontalOptions="Center" FontSize="Large" TextColor="White"
                     Margin="0,15,0,15"/&gt;
  
              &lt;StackLayout Orientation="Vertical"&gt;
                  &lt;ImageButton x:Name="imageWidget_1" BackgroundColor="Black" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Aspect="AspectFill"/&gt;
              &lt;/StackLayout&gt;
  
          &lt;/StackLayout&gt;
      &lt;/Frame&gt;
  </code></pre>
  
  <p>First time I set the <strong>StackLayout</strong> or the parent of the <strong>ImageButton</strong>'s HeightRequest to a number and it would make the <strong>ImageButton</strong>'s <strong>Height</strong> a fixed number but I dont want that I want the <strong>ImageButton</strong>'s <strong><em>Height</em></strong> to change with the Image's size <strong>Ratio</strong> bye the width which is fixed next to 
  the parent layout.</p>