title: control template visibility triggers
body: <p>All I am trying to do with the button style below is have the button only be visible when either IsMouseOver or IsPressed.</p>
  
  <p>The way it's written won't even compile, not finding "Glyph". How can I clean this up to the button is visible when IsMoueOver?</p>
  
  <p>Cheers,<br>
  Berryl</p>
  
  <pre><code>&lt;Style x:Key="EditCommandButtonStyle" TargetType="{x:Type Button}"&gt;
     &lt;Setter Property="Content"&gt;
        &lt;Setter.Value&gt;
           &lt;TextBlock x:Name="Glyph" Width="30" 
              FontFamily="Wingdings 3" FontSize="24" Text="a" Visibility="Hidden"/&gt;
        &lt;/Setter.Value&gt;
     &lt;/Setter&gt;
     &lt;Setter Property="Template"&gt;
        &lt;Setter.Value&gt;
           &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
              &lt;Border x:Name="Border" Background="Transparent" CornerRadius="4"&gt;
                 &lt;ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/&gt;
              &lt;/Border&gt;
              &lt;ControlTemplate.Triggers&gt;
                 &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                    &lt;Setter TargetName="Border" Property="Background" Value="LightBlue"/&gt;
                    &lt;Setter TargetName="Glyph" Property="Visibility" Value="Visible"/&gt;
                 &lt;/Trigger&gt;
                 &lt;Trigger Property="IsPressed" Value="True"&gt;
                    &lt;Setter TargetName="Border" Property="Background" Value="Orange"/&gt;
                 &lt;/Trigger&gt;
              &lt;/ControlTemplate.Triggers&gt;
           &lt;/ControlTemplate&gt;
        &lt;/Setter.Value&gt;
     &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>