<Style x:Key="myrect" TargetType="Rectangle"> <Style.Triggers> <EventTrigger RoutedEvent="MouseEnter"> <BeginStoryboard> <Storyboard > <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:.9" AutoReverse="True" > </DoubleAnimation> </Storyboard> </BeginStoryboard> </EventTrigger> </Style.Triggers> </Style>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)