2009-01-07から1日間の記事一覧

VisualStateManager お試し

C#

はじめに VisualStateManager*1 を使って「マウスカーソルが上にあるときだけ Button の色を変更する」処理をコードレス(XAML は書くけど)で実現してみます。 XAML <UserControl x:Class="VSMSample.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> </usercontrol>