Jak pokazać przycisk jest kliknięty (wciśnięty) w WPF
Po najechaniu myszką przycisk powinien pokazywać obramowanie tła
Stworzyłem prosty styl
<UserControl.Resources>
<Style TargetType="Button" x:Key="TransparentButton">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent">
<ContentPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
i przycisk
<Button Height="20" Width="20" Padding="0,0,0,0" DockPanel.Dock="Top" Grid.Row="0" Grid.Column="1" Click="button_click" Style="{StaticResource TransparentButton}"
BorderBrush="Transparent" BorderThickness="0" Background="Transparent">
<Button.Content>
<Image Source="../Resources/Help_icon.png" Stretch="UniformToFill" />
</Button.Content>
</Button>
ale w tym przypadku po naciśnięciu przycisku nie pojawia się w interfejsie użytkownika, użytkownik powinien poczuć, że przycisk jest naciśnięty.
Dziękuję i pozdrawiam