9

WPF でシンプルなボタンを使用しています。背景にボタンの画像を配置しました。私の問題は、マウスポインターをボタンに移動すると、デフォルトのグローが得られ、背景として指定された画像が上書きされることです。

        <Button Grid.Column="3" Name="Play" BorderBrush="Transparent"
            Focusable="False" Width="45" Height="45" Click="Play_Click"
            VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,6,10,6">
            <Button.Background >
                <ImageBrush ImageSource="images/play.png"  />
            </Button.Background>
            <Button.Foreground>
                <ImageBrush ImageSource="images/play.png"  />
            </Button.Foreground>
        </Button>

私を助けてください。

4

1 に答える 1