title: Change Grid Visibility property
body: <p>I writing app for UWP.                          </p>
  
  <p>I have this xaml:</p>
  
  <pre><code>    &lt;ScrollViewer HorizontalAlignment="Left" Height="668" Margin="63,52,0,0" VerticalAlignment="Top" Width="350"&gt;
          &lt;GridView   x:Name="OrdersGridView" IsItemClickEnabled="True" &gt;
              &lt;GridView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel &gt;
                          &lt;Grid  Height="204" BorderBrush="#FFFBF8F8" BorderThickness="0,0,1,1"&gt;
                              &lt;TextBlock Text="{Binding date_created}"  HorizontalAlignment="Left" TextAlignment="Center" TextWrapping="Wrap"  VerticalAlignment="Top" Width="350" Height="50" FontFamily="SF UI Display" FontSize="25" FontWeight="Light" Foreground="White" /&gt;
                              &lt;TextBlock  TextAlignment="Center"  HorizontalAlignment="Left" Margin="0,146,-1,0" TextWrapping="Wrap" Text="{Binding billing.address_1}" VerticalAlignment="Top" Height="58" Width="350" FontFamily="SF UI Display" FontSize="25" FontWeight="Light" Foreground="White" /&gt;
                              &lt;TextBlock  HorizontalAlignment="Left" TextAlignment="Center" Margin="0,86,-1,0" TextWrapping="Wrap" Text="{Binding billing.first_name}" VerticalAlignment="Top" Height="60" Width="350" FontFamily="SF UI Display" FontSize="25" FontWeight="Light" Foreground="White" Padding="0,0,0,0"/&gt;
  
                          &lt;/Grid&gt;
  
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/GridView.ItemTemplate&gt;
          &lt;/GridView&gt;
      &lt;/ScrollViewer&gt;
      &lt;Grid x:Name="DetailGrid" HorizontalAlignment="Left" Height="667" Margin="415,53,-2,0" VerticalAlignment="Top" Width="867"&gt;
          &lt;Button x:Name="button" Content="Button" HorizontalAlignment="Left" Margin="390,172,0,0" VerticalAlignment="Top"/&gt;
  
  
      &lt;/Grid&gt;
  
  
  
  
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>I set <code>DetailGrid.Visibility = Visibility.Collapsed</code> to this grid <code>&lt;Grid x:Name="DetailGrid"</code>  in <code>.cs</code></p>
  
  <p>I need to change it to <code>Visible</code> when I click on element in GridView.</p>
  
  <p>How I can do it?</p>
  
  <p>Thank's for help dudes.</p>