title: Change GridViewItem.Width on Window.Current.SizeChanged for UWP
body: <p>I am trying to change the GridViewItem's width property when the window size is changed (Window.Current.SizeChanged) on UWP.</p>
  
  <pre><code>    &lt;GridView x:Name="gv" Grid.Row="1" Background="Gray"&gt;
          &lt;GridView.ItemContainerStyle&gt;
              &lt;Style TargetType="GridViewItem"&gt;
                  &lt;Setter Property="HorizontalContentAlignment" Value="Stretch"/&gt;
                  &lt;Setter Property="VerticalContentAlignment" Value="Stretch"/&gt;
                  &lt;Setter Property="Height" Value="80"/&gt;
                  &lt;Setter Property="Width" Value="80"/&gt;
              &lt;/Style&gt;
          &lt;/GridView.ItemContainerStyle&gt;
          &lt;GridView.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;Rectangle x:Name="rect" Fill="Red"/&gt;
              &lt;/DataTemplate&gt;
          &lt;/GridView.ItemTemplate&gt;
      &lt;/GridView&gt;
  </code></pre>
  
  <p>I plan to change the GridViewItem's width when the window is resized on windows 10 so that there are no blank spaces on the end.</p>
  
  <p>P.S. image for reference.</p>
  
  <p>Please help.</p>
  
  <p><a href="https://i.stack.imgur.com/r2i0H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r2i0H.png" alt="On resizing the window, there is a blank space that is left"></a></p>