title: Visibility.Collapse does not work in WPF
body: <p><code>Visibility.Collapse</code> doesnt work in my case. below is the XAML. If I try to hide the <code>lblCountry</code> and <code>cmbCountry</code> a white space is shown between zip and practice fields. There is no option to hide an entire row of a <code>Grid</code>.</p>
  
  <p>
      </p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Canvas Name="canDemographic" &gt;
  
      &lt;/Canvas&gt;
      &lt;Grid HorizontalAlignment="Center" VerticalAlignment="Center"&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="auto"/&gt;
              &lt;ColumnDefinition Width="auto"/&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40" /&gt;
              &lt;RowDefinition Height="40" /&gt;
              &lt;RowDefinition Height="40" /&gt;
              &lt;RowDefinition Height="40" /&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
              &lt;RowDefinition Height="40"/&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;TextBlock Width="800" Height="50" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center"  FontFamily="Arial" FontSize="30" FontWeight="Bold" Visibility="Collapsed"&gt;
    Please review or enter your user information details:
          &lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *First Name:
          &lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold" Text=" Middle Name:"&gt;&lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *Last Name:
          &lt;/TextBlock&gt;
          &lt;TextBlock Name="tbEmail" Width="200" Height="30" Grid.Column="0" Grid.Row="12" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *Email Address:
          &lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *Address1:
          &lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="6" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold" Text=" Address2:"&gt;&lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *City:
          &lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *State:
          &lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="9" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"&gt;
    *Zip:
          &lt;/TextBlock&gt;
          &lt;TextBlock Name="lblCountry" Width="200" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="10" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold" Text=" *Country:" Visibility="Collapsed"="&gt;&lt;/TextBlock&gt;
          &lt;TextBlock Width="200" Height="30" Grid.Column="0" Grid.Row="11" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold" Text=" Practice/Affiliation:"&gt;&lt;/TextBlock&gt;
  
          &lt;!-- Input fields --&gt;
          &lt;TextBox Name="txtFirstName" Width="200" Height="30" 
           Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold" MaxLength="20" TextChanged="txtFirstName_TextChanged" IsEnabled="True" /&gt;
          &lt;TextBox Name="txtMiddleName" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"
           Grid.Column="1" Grid.Row="3" MaxLength="10" IsEnabled="True" /&gt;
          &lt;TextBox Name="txtLastName" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
           Grid.Column="1" Grid.Row="4" MaxLength="20" TextChanged="txtLastName_TextChanged" /&gt;
          &lt;TextBox Name="txtEmail" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
           Grid.Column="1" Grid.Row="12" MaxLength="100"/&gt;
          &lt;TextBox Name="txtAddress1" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left"  FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="1" Grid.Row="5" MaxLength="100" TextChanged="txtAddress1_TextChanged" /&gt;
          &lt;TextBox Name="txtAddress2" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="1" Grid.Row="6" MaxLength="100"/&gt;
          &lt;TextBox Name="txtCity" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="1" Grid.Row="7" MaxLength="50" TextChanged="txtCity_TextChanged" /&gt;
          &lt;TextBox Name="txtState" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="1" Grid.Row="8" MaxLength="50" TextChanged="txtState_TextChanged" /&gt;
          &lt;TextBox Name="txtZip" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="1" Grid.Row="9" MaxLength="50" TextChanged="txtZip_TextChanged" /&gt;
          &lt;ComboBox Name="cmbCountry" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="0" Grid.Row="10" Grid.ColumnSpan="2" SelectionChanged="cmbCountry_SelectionChanged" ItemsSource="{Binding}" Visibility="Collapsed" /&gt;
          &lt;TextBox Name="txtPractice" Width="200" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Arial" FontSize="18" FontWeight="Bold"
          Grid.Column="1" Grid.Row="11" MaxLength="50"/&gt;
      &lt;/Grid&gt;
      &lt;Button Name="btnExit" Height="30" VerticalAlignment="Bottom" Width="100" HorizontalAlignment="Left" Margin="21,0,0,12" BorderThickness="1" FontFamily="arial" Background="LightGray" FontSize="12pt" FontWeight="Bold" Click="btnExit_Click"&gt;Back&lt;/Button&gt;
      &lt;Button Name="btnNext" Height="30" VerticalAlignment="Bottom" Width="100" HorizontalAlignment="Right" Margin="0,0,21,12" BorderThickness="1" FontFamily="arial" Background="LightGray" FontSize="12pt" FontWeight="Bold" Click="btnNext_Click" IsEnabled="False" &gt;Next&lt;/Button&gt;
  &lt;/Grid&gt;
      &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p></p>