WPF

マウスオーバで色を変える

WPF

MouseEnter、Leaveで色が変わるボタンのサンプル Window1.xaml <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <Canvas Width="120" Height="44"> </canvas></grid></window>