title: How can I create a group footer in a WPF ListView ( GridView )
body: <p>I have a ListView that displays sales orders, and groups them by status. In WinForms I had a footer at the bottom of each group that displayed the Total sale price for each group, and I would like to do the same in WPF.</p>
  
  <p>I have figured out how to group the orders, but I can't figure out how to create a footer.</p>
  
  <p>This is my current group style:</p>
  
  <pre><code>&lt;ListView.GroupStyle&gt;
              &lt;GroupStyle HidesIfEmpty="True"&gt;
                  &lt;GroupStyle.HeaderTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;!--CollectionViewGroup.Name will be assigned the value of Status for that group.--&gt;
                          &lt;!--http://stackoverflow.com/questions/639809/how-do-i-group-items-in-a-wpf-listview--&gt;
                          &lt;Grid&gt;
                              &lt;Grid.ColumnDefinitions&gt;
                                  &lt;ColumnDefinition Width="*" /&gt;
                                  &lt;ColumnDefinition Width="*" /&gt;
                              &lt;/Grid.ColumnDefinitions&gt;
                              &lt;TextBlock Grid.Column="0" Text="{Binding Path=Name}" HorizontalAlignment="Left" FontWeight="Bold"  Foreground="Black"/&gt;
                              &lt;Line Grid.Column="1" Stroke="Black" X2="500" Fill="Black" VerticalAlignment="Center" /&gt;
                          &lt;/Grid&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/GroupStyle.HeaderTemplate&gt;
              &lt;/GroupStyle&gt;
          &lt;/ListView.GroupStyle&gt;
  </code></pre>