I can't find a simple answer to this problem.
I've created a Button
in WPF and gave it a background image. First my problem was the border, but then I was able to remove that with
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
Now the problem is that the windows MouseOver
effect is visible. Is there an easy method to remove that? I tried to replace the Value
with an Image
. It worked but I couldn't set the Text
anymore on the button.
<Button x:Name="gameBtnAnswer1" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Cursor="Hand" Padding="-4" Margin="0,0,18,0" Height="38" Width="336" HorizontalAlignment="Left" FontSize="16" Foreground="White" Click="gameBtnAnswer1_Click" BorderThickness="0" Focusable="False">
<Button.Background>
<ImageBrush ImageSource="themes/blue/button_answer.png" Stretch="None" TileMode="Tile"/>
</Button.Background>
<Button.Content>
Hier steht die Antwort #1
</Button.Content>
</Button>