title: ValueConverter for Unchecked CheckBox
body: <p>I need to load an item when the CheckBox is selected and if it is selected it should disappear because something else will be loaded.</p>
  
  <p>Where did I make a mistake in this case?</p>
  
  <p>XAML:</p>
  
  <pre><code>    &lt;StackPanel&gt; 
        &lt;StackPanel.Resources&gt;
          &lt;vm:NegatingConverter x:Key="NegatingConverter"/&gt; 
        &lt;/StackPanel.Resources&gt;
  
          &lt;CheckBox Content="Load?" Name="LoadsDifferent"/&gt;
  
          &lt;StackPanel Height="15" Width="360" Visibility="{Binding ElementName=LoadsDifferent, Path=IsChecked, Converter={StaticResource NegatingConverter}}"&gt;
             &lt;TextBlock&gt;Load line&lt;Run BaselineAlignment="Subscript" FontSize="10"&gt;k&lt;/Run&gt; [kN/m]&lt;/TextBlock&gt;
          &lt;/StackPanel&gt;
      &lt;/StackPanel&gt;
  </code></pre>
  
  <p>NegatingConverter</p>
  
  <pre><code>[ValueConversion(typeof(bool), typeof(bool))]
      public class NegatingConverter : IValueConverter
      {
          public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
          {
              return !((bool)value);
          }
  
          public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
          {
              throw new NotImplementedException();
          }
      }
  </code></pre>