title: Windows 8.1 Universal full width listview group header
body: <p>I am developing a windows universal 8.1 application .I need to full width header of listview. I use this code</p>
  
  <pre><code>&lt;ListView.GroupStyle&gt;
      &lt;GroupStyle HidesIfEmpty="True"&gt;
      &lt;GroupStyle.HeaderTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Grid HorizontalAlignment="Center" Margin="0 5"&gt;
                  &lt;TextBlock Text="{Binding Date}"  FontSize="17"  Foreground="Black" FontFamily="{StaticResource IranSans}" TextAlignment="Center" FlowDirection="RightToLeft"/&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
      &lt;/GroupStyle.HeaderTemplate&gt;
      &lt;GroupStyle.HeaderContainerStyle&gt;
          &lt;Style
              TargetType="ListViewBaseHeaderItem"&gt;
              &lt;Setter Property="HorizontalContentAlignment"
              Value="Stretch" /&gt;
              &lt;Setter Property="HorizontalAlignment"
                      Value="Stretch"/&gt;
          &lt;/Style&gt;
      &lt;/GroupStyle.HeaderContainerStyle&gt;
  &lt;/GroupStyle&gt;
  </code></pre>
  
  <p></p>
  
  <p>but this code only works for windows phone 8.1 not windows 8.1. here is the image of them. does exist a way for windows 8.1?
  <a href="https://i.stack.imgur.com/fwvra.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fwvra.png" alt="Windows 8.1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/3zqMX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3zqMX.png" alt="Windows Phone 8.1"></a></p>