title: ToggleButton IsChecked trigger
body: <p>I am writing one application where I have a <code>ToggleButton</code> and other few controls on UI.  I want to achieve bellow two things when state of <code>ToggleButton</code> is <code>IsChecked</code>.</p>
  
  <pre>
  1) Hide few controls e.g. button1,button2 etc. in below example
  2) Change 'Content' of ToggleButton to 'Show'
  </pre>
  
  <p>I can achieve point no 2 but don't know how to access other control and set their properties inside a <code>Trigger</code>.  My xaml code is shown below:</p>
  
  <pre><code>&lt;Grid&gt;
    &lt;Grid.RowDefinitions&gt;
      &lt;RowDefinition Height="108*" /&gt;
      &lt;RowDefinition Height="107*" /&gt;
      &lt;RowDefinition Height="96*" /&gt;
    &lt;/Grid.RowDefinitions&gt;
    &lt;Grid.ColumnDefinitions&gt;
      &lt;ColumnDefinition Width="209*" /&gt;
      &lt;ColumnDefinition Width="161*" /&gt;
      &lt;ColumnDefinition Width="133*" /&gt;
    &lt;/Grid.ColumnDefinitions&gt;
    &lt;ToggleButton x:Name="tg"
                  Height="20"
                  Width="80"
                  Grid.Column="1"
                  Margin="2,38,79,49"
                  Grid.Row="1"&gt;
      &lt;ToggleButton.Style&gt;
        &lt;Style TargetType="{x:Type ToggleButton}"&gt;
          &lt;Setter Property="Content"
                  Value="Hide" /&gt;
          &lt;Style.Triggers&gt;
            &lt;Trigger Property="IsChecked"
                     Value="true"&gt;
              &lt;Setter Property="{Binding ElementName=Button1,Path=Content}"
                      Value="Show" /&gt;
            &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
        &lt;/Style&gt;
      &lt;/ToggleButton.Style&gt;
    &lt;/ToggleButton&gt;
    &lt;Button Content="Button1"
            Height="23"
            HorizontalAlignment="Left"
            Margin="45,28,0,0"
            Name="button1"
            VerticalAlignment="Top"
            Width="75" /&gt;
    &lt;Button Content="Button2"
            Height="23"
            HorizontalAlignment="Left"
            Margin="38,28,0,0"
            Name="button2"
            VerticalAlignment="Top"
            Width="75"
            Grid.Column="1" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Question: When user clicks on toggle button 'tg' I want to hide 'button1','button2' and when state of toggle button changes to un-check again show the button1.</p>
  
  <p>How can I toggle the visibility of button1 with the <code>ToggleButton</code>'s <code>IsChecked</code> property?</p>