title: UWP: Cannot make ListView scrollable
body: <p>I have a page with a simple grid (2x2). In one grid on the bottom left corner is another Grid and inside this grid is a <code>ListView</code> bound to a collection. Entries can be added to the collection so the ListView grows in height (height of ListView is set to auto, so that all space available is used).</p>
  
  <p>What I want is, if all available space (from the screen height) is used, scrollbars for the ListView should appear and should be usable. Funny (unfunny) thing is: scrollbars do appear but I cannot use them, I cannot scroll the ListView with the vertical scrollbar that appears when I hover the ListView.</p>
  
  <p>It works, when I set the height of the ListView to a fixed value, but I don't want it that way, because then it doesn't use all the available space on the screen.</p>
  
  <p>This is the XAML of the page (I removed some parts for demonstration purposes) :</p>
  
  <pre><code>&lt;Page
      x:Class="Qooli.TimeTracker.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:Qooli.TimeTracker"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"&gt;
  
      &lt;Page.Resources&gt;
          ...
      &lt;/Page.Resources&gt;
  
      &lt;Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
              &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
          &lt;/Grid.ColumnDefinitions&gt;
  
  
          &lt;StackPanel Name="spAddEntry" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30"&gt;
              &lt;TextBlock Text="Add new entry:" Name="lblAddNewEntry" /&gt;
              ...
          &lt;/StackPanel&gt;
  
          &lt;StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30"&gt;
              &lt;TextBlock Text="Allocated time:" Name="lblAllocatedTime" /&gt;
              ...
          &lt;/StackPanel&gt;
  
          &lt;Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="1" Margin="30"&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;TextBlock Text="Daily overview:" Name="lblDailyOverview" Grid.Row="0" Grid.Column="0" /&gt;
              &lt;ListView Name="lvTimeEntries"  Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                        Height="Auto"
                        MinHeight="100"
                        VerticalAlignment="Top"
                        MinWidth="300"
                        SelectionMode="Single"
                        ItemsSource="{x:Bind ViewModel.TimeEntriesAdvancedCollectionView, Mode=OneWay}"
                        ScrollViewer.VerticalScrollBarVisibility="Visible"
                        ScrollViewer.IsVerticalRailEnabled="True"
                        ScrollViewer.VerticalScrollMode="Enabled"&gt;
                  &lt;ItemsControl.ItemsPanel&gt;
                      &lt;ItemsPanelTemplate&gt;
                          &lt;StackPanel&gt;&lt;/StackPanel&gt;
                      &lt;/ItemsPanelTemplate&gt;
                  &lt;/ItemsControl.ItemsPanel&gt;
                  &lt;ItemsControl.ItemTemplate&gt;
                      &lt;DataTemplate x:DataType="local:TimeEntry"&gt;
                          &lt;Grid Background="{Binding Type, Converter={StaticResource TimeEntryTypeColorConverter}}" Padding="5"&gt;
                              &lt;Grid.RowDefinitions&gt;
                                  &lt;RowDefinition Height="200"&gt;&lt;/RowDefinition&gt;
                              &lt;/Grid.RowDefinitions&gt;
                              &lt;Grid.ColumnDefinitions&gt;
                                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
                                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
                                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
                                  &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                              &lt;/Grid.ColumnDefinitions&gt;
                              &lt;TextBlock Text="{x:Bind Time, Mode=OneWay}" Style="{StaticResource TitleTextBlockStyle}"
                                         MinWidth="60"
                                         MaxWidth="60"
                                         Grid.Row="0" Grid.Column="0"&gt;
                              &lt;/TextBlock&gt;
                              &lt;TextBlock Text="{x:Bind Title, Mode=OneWay}" Style="{StaticResource BodyTextBlockStyle}" Margin="5,0,0,0"
                                         MinWidth="100"
                                         MaxWidth="100"
                                         Grid.Row="0" Grid.Column="1"&gt;
                              &lt;/TextBlock&gt;
                              &lt;Button Name="btnEditTimeEntry" Grid.Row="0" Grid.Column="2" Margin="5,5,5,5"&gt;
                                  &lt;SymbolIcon x:Name="edit" Symbol="Edit"/&gt;
                              &lt;/Button&gt;
                              &lt;Button Name="btnDeleteTimeEntry" Grid.Row="0" Grid.Column="3" Margin="5,5,5,5"&gt;
                                  &lt;SymbolIcon x:Name="delete" Symbol="Delete"/&gt;
                              &lt;/Button&gt;
                          &lt;/Grid&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/ItemsControl.ItemTemplate&gt;
              &lt;/ListView&gt;
          &lt;/Grid&gt;
  
          &lt;StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30"&gt;
              &lt;TextBlock Style="{StaticResource summaryTextStyle}" Text="Start time:" Name="lblDayStartTime" /&gt;
              ...
          &lt;/StackPanel&gt;
  
      &lt;/Grid&gt;
  &lt;/Page&gt;
  </code></pre>
  
  <p>Can someone spot why it is behaving this way?</p>