title: Making XAML Grid width full screen
body: <p>I m creating Windows Phone 8.1 app with Visual Studio Where I m putting XAML grid but could not make full width. If I give width to each column then grid will be not full width in all resolution of Phone
  My codes are as below</p>
  
  <pre><code>&lt;ListView Name="lvData" Margin="5,0" HorizontalAlignment="Stretch" Grid.Row="2" BorderBrush="Black" 
                                      BorderThickness="1" Foreground="#000" VerticalAlignment="Center"&gt;
                      &lt;ListView.HeaderTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;Grid&gt;
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
                                  &lt;GridViewHeaderItem Grid.Column="0" x:Uid="_Number" Style="{StaticResource GridViewHeader}" /&gt;
                                  &lt;GridViewHeaderItem Grid.Column="1" x:Uid="_Dep" Style="{StaticResource GridViewHeader}" /&gt;
                                  &lt;GridViewHeaderItem Grid.Column="2" x:Uid="Arr" Style="{StaticResource GridViewHeader}" /&gt;
                                  &lt;GridViewHeaderItem Grid.Column="3" x:Uid="CurrentStatus" Style="{StaticResource GridViewHeader}" /&gt;
                              &lt;/Grid&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ListView.HeaderTemplate&gt;
                      &lt;ListView.ItemTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;Grid&gt;
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                      &lt;ColumnDefinition Width="90"/&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
                                  &lt;GridViewItem Grid.Column="0" Style="{StaticResource GridViewItem}" Content="{Binding Number}"/&gt;
                                  &lt;GridViewItem Grid.Column="1" Style="{StaticResource GridViewItem}" Content="{Binding DepTime}" /&gt;
                                  &lt;GridViewItem Grid.Column="2" Style="{StaticResource GridViewItem}" Content="{Binding ArrTime}"/&gt;
                                  &lt;GridViewItem Grid.Column="3" Style="{StaticResource GridViewItem}" Foreground="{Binding Color}" Content="{Binding CurrentStatus}"/&gt;
                              &lt;/Grid&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ListView.ItemTemplate&gt;
                  &lt;/ListView&gt;
  </code></pre>
  
  <p>My Style</p>
  
  <pre><code>&lt;Style TargetType="GridViewHeaderItem" x:Key="GridViewHeader"&gt;
              &lt;Setter Property="Background" Value="#48649F"/&gt;
              &lt;Setter Property="Foreground" Value="#fff"/&gt;
              &lt;Setter Property="Height" Value="40"/&gt;
              &lt;Setter Property="VerticalContentAlignment" Value="Center"/&gt;
          &lt;/Style&gt;
          &lt;Style TargetType="GridViewItem" x:Key="GridViewItem"&gt;
              &lt;Setter Property="Foreground" Value="#000"/&gt;
              &lt;Setter Property="BorderBrush" Value="#000"/&gt;
              &lt;Setter Property="BorderThickness" Value="1"/&gt;
              &lt;Setter Property="Height" Value="40"/&gt;
              &lt;Setter Property="HorizontalAlignment" Value="Stretch"/&gt;
          &lt;/Style&gt;
  </code></pre>