Keep ListView.HeaderTemplate visible/static/sticky in UWP
<p>I need to keep the <code>HeaderTemplate</code> of a <code>ListView</code> visible at all times, but I don't know what to set, or what part of the <code>ListView</code>'s template to change to do that.</p>

<p>What I currently have causes the header of the <code>ListView</code> to scroll off the top when scrolling down through items.</p>

<p>How can I keep the header "row" of the <code>ListView</code> visible even when scrolling through the <code>ListView</code>'s items??</p>

<p>Here's my XAML:</p>

<pre><code>&lt;ListView x:Name="permitResults"
          Grid.Row="1"
          AutomationProperties.AutomationId="PermitResults"
          AutomationProperties.Name="Permit Search Results"
          ItemsSource="{Binding Source={StaticResource ResultsSource}}" 
          ItemClick="permitResults_ItemClick"
          SelectionMode="None"
          TabIndex="1"
          Padding="0"
          Margin="0"
          BorderThickness="0"
          IsSwipeEnabled="True"
          IsItemClickEnabled="True"
          ScrollViewer.VerticalScrollBarVisibility="Auto" &gt;
    &lt;ListView.HeaderTemplate&gt;
        &lt;DataTemplate&gt;
            &lt;Grid Margin="0,0,0,0" Width="1366" Height="Auto" HorizontalAlignment="Left"&gt;
                &lt;Grid.Resources&gt;
                        &lt;Style TargetType="TextBlock" BasedOn="{StaticResource SearchGridResultsHeaderTextBlock}"&gt;
                            &lt;Setter Property="HorizontalAlignment" Value="Left"&gt;&lt;/Setter&gt;
                        &lt;/Style&gt;
                    &lt;/Grid.Resources&gt;
                    &lt;Grid.RowDefinitions&gt;
                        &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
                    &lt;/Grid.RowDefinitions&gt;
                    &lt;Grid.ColumnDefinitions&gt;
                        &lt;ColumnDefinition Width="2*"/&gt;
                        &lt;ColumnDefinition Width="2*"/&gt;
                        &lt;ColumnDefinition Width="3*"/&gt;
                        &lt;ColumnDefinition Width="2*"/&gt;
                        &lt;ColumnDefinition Width="6*"/&gt;
                        &lt;ColumnDefinition Width="2*"/&gt;
                    &lt;/Grid.ColumnDefinitions&gt;
                    &lt;TextBlock Grid.Column="0" Text="Permit #" MaxLines="2" TextWrapping="WrapWholeWords"/&gt;
                    &lt;TextBlock Grid.Column="1" Text="County" TextWrapping="WrapWholeWords" /&gt;
                    &lt;TextBlock Grid.Column="2" Text="Business Name" TextWrapping="WrapWholeWords" /&gt;
                    &lt;TextBlock Grid.Column="3" Text="Status" TextWrapping="WrapWholeWords" /&gt;
                    &lt;TextBlock Grid.Column="4" Text="Type" TextWrapping="WrapWholeWords" /&gt;
                    &lt;TextBlock Grid.Column="5" Text="FY" TextWrapping="WrapWholeWords" /&gt;
                &lt;/Grid&gt;
        &lt;/DataTemplate&gt;
    &lt;/ListView.HeaderTemplate&gt;
    &lt;ListView.ItemTemplate&gt;
        &lt;DataTemplate&gt;
            &lt;Grid Margin="-11,0,0,0" Width="1366" Height="Auto"&gt;
                &lt;Grid.Resources&gt;
                    &lt;Style TargetType="TextBlock" BasedOn="{StaticResource SearchGridResultsTextBlock}"&gt;
                        &lt;Setter Property="HorizontalAlignment" Value="Left"&gt;&lt;/Setter&gt;
                    &lt;/Style&gt;
                &lt;/Grid.Resources&gt;
                &lt;Grid.RowDefinitions&gt;
                    &lt;RowDefinition Height="44"&gt;&lt;/RowDefinition&gt;
                &lt;/Grid.RowDefinitions&gt;
                &lt;Grid.ColumnDefinitions&gt;
                    &lt;ColumnDefinition Width="2*"/&gt;
                    &lt;ColumnDefinition Width="2*"/&gt;
                    &lt;ColumnDefinition Width="3*"/&gt;
                    &lt;ColumnDefinition Width="2*"/&gt;
                    &lt;ColumnDefinition Width="6*"/&gt;
                    &lt;ColumnDefinition Width="2*"/&gt;
                &lt;/Grid.ColumnDefinitions&gt;
                &lt;TextBlock Grid.Column="0" Text="{Binding PermitNumber}" TextWrapping="WrapWholeWords" /&gt;
                &lt;TextBlock Grid.Column="1" Text="{Binding County}" TextWrapping="NoWrap" /&gt;
                &lt;TextBlock Grid.Column="2" Text="{Binding BusinessName}" TextWrapping="NoWrap" /&gt;
                &lt;TextBlock Grid.Column="3" Text="{Binding Status}" TextWrapping="NoWrap" /&gt;
                &lt;TextBlock Grid.Column="4" Text="{Binding PermitType}" TextWrapping="NoWrap" /&gt;
                &lt;TextBlock Grid.Column="5" Text="{Binding EffFiscalYear}" TextWrapping="NoWrap" /&gt;
            &lt;/Grid&gt;
        &lt;/DataTemplate&gt;
    &lt;/ListView.ItemTemplate&gt;
&lt;/ListView&gt;
</code></pre>