title: XAML Code IsChecked Trigger On ToggleButton
body: <p>For some reason the following code will not work</p>
  
  <pre><code>&lt;ToggleButton Content="Options" x:Name="Options" Height="{Binding ElementName=Connect,Path=ActualHeight}"&gt;
      &lt;ToggleButton.Triggers&gt;
          &lt;Trigger Property="IsChecked" Value="True"&gt;
              &lt;Setter TargetName="OptionsPanel" Property="Visibility" Value="Collapsed"/&gt;
          &lt;/Trigger&gt;
      &lt;/ToggleButton.Triggers&gt;
  &lt;/ToggleButton&gt;
  &lt;StackPanel x:Name="OptionPanel"&gt;
  
  &lt;/StackPanel&gt; 
  </code></pre>
  
  <p>the error I am getting is </p>
  
  <blockquote>
    <p>Error 1   The member "IsChecked" is not recognized or is not
    accessible.</p>
  </blockquote>
  
  <p>Could someone please assist in what I screwed up?
  My brain has turned to Swiss cheese and I cant see it</p>