title: Xamarin.Forms ListView AutoHeight in XAML
body: <p>I have ListView with ViewCell and it's ViewCell contains Label with huge text. How can I make an auto-height ViewCell???</p>
  
  <p>Screenshot of issue 
  <a href="https://i.stack.imgur.com/hCilq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hCilq.png" alt="Screenshot of issue "></a></p>
  
  <p>My XAML code:</p>
  
  <pre><code>    &lt;ContentPage  xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Physis.Movements_And_Interactions_Page" xmlns:local="clr-namespace:Physis"&gt;
      &lt;ContentPage.ToolbarItems&gt; 
      &lt;ToolbarItem  x:Name="settings" Text="{Binding settings_text}" Clicked="Handle_Clicked"/&gt;
      &lt;/ContentPage.ToolbarItems&gt;
      &lt;ContentPage.Content&gt;
  
  
       &lt;StackLayout Margin="20,35,20,20" x:Name="Main_View2" &gt;
              &lt;ListView x:Name="Main_Menu" ItemsSource="{Binding Planets}" ItemSelected="Handle_ItemSelected" ItemTapped="Handle_ItemTapped" BackgroundColor="{DynamicResource Key=backgroundColor}" SeparatorColor="{DynamicResource Key=textColor}"&gt;
              &lt;ListView.ItemTemplate&gt;
              &lt;DataTemplate &gt;
               &lt;ViewCell &gt;
  
                &lt;StackLayout Orientation="Vertical" &gt;
                 &lt;Label Text="{Binding Name}" StyleClass="Body"/&gt;
                 &lt;Label Text="{Binding Description}" StyleClass="Body"/&gt;               
               &lt;/StackLayout&gt;
  
               &lt;/ViewCell&gt;
              &lt;/DataTemplate&gt;
               &lt;/ListView.ItemTemplate&gt;
                &lt;/ListView&gt;
  
        &lt;/StackLayout &gt;
  &lt;/ContentPage.Content&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks everyone!</p>