0

とにかくボタンのホバーとクリックの画像を変更する方法があれば教えてください。これが私の現在のコードです:

<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="MOP_Launcher" mc:Ignorable="d" x:Class="MainWindow"
Title="MOP Launcher" Height="523" Width="977" WindowStyle="None" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" Cursor="Arrow" Icon="pack://siteoforigin:,,,/mop.png" Foreground="{x:Null}" Visibility="Visible" AllowsTransparency="True">
<Window.Background>
    <ImageBrush ImageSource="pack://siteoforigin:,,,/MOP Launcher BG.png"/>
</Window.Background>
<Grid>
    <Button x:Name="playbtn" Content="Button" HorizontalAlignment="Left" Height="91" Margin="779,422,0,0" VerticalAlignment="Top" Width="165" Foreground="{x:Null}" BorderBrush="{x:Null}" Template="{DynamicResource ButtonControlTemplate2}" >
        <Button.Background>
            <ImageBrush ImageSource="play.png"/>

        </Button.Background>

    </Button>
</Grid>

4

1 に答える 1