この問題に対する簡単な答えは見つかりません。
Button
WPFでを作成し、背景画像を付けました。最初の私の問題は国境でしたが、それから私はそれを取り除くことができました
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
ここで問題となるのは、ウィンドウMouseOver
効果が表示されることです。それを取り除く簡単な方法はありますか?をに置き換えてみValue
ましたImage
。Text
動作しましたが、ボタンを設定できなくなりました。
<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>