title: WPF: How to freeze a ListView header row so that it won't scroll off the screen
body: <p>I am new to WPF development, I have a ListView and I want to freeze the header row so that it won't scroll off the screen when the user scrolls the list.
  The xaml code, I have inherited, looks something like this:</p>
  
  <pre><code>&lt;ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"&gt;
    &lt;DockPanel&gt;
      &lt;forms:BindableGrid DockPanel.Dock="Top" [code snipped] &gt;
      &lt;ListView.View&gt;
        &lt;GridView&gt;
          &lt;GridViewColumn Header="ColA" DisplayMemberBinding="{Binding ColA}" /&gt;
          &lt;GridViewColumn Header="ColB" DisplayMemberBinding="{Binding ColB}" /&gt;
             [etc]
  </code></pre>