Advertisement
andidegn

Untitled

Dec 19th, 2014
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 0.96 KB | None | 0 0
  1. <Style TargetType="Button">
  2.             <Setter Property="Template" Value="{StaticResource ButtonTemplate}" />
  3.             <Setter Property="Template">
  4.                 <Setter.Value>
  5.                 <ControlTemplate TargetType="Button">
  6.                     <ControlTemplate.Triggers>
  7.                         <EventTrigger RoutedEvent="Button.Click">
  8.                             <BeginStoryboard>
  9.                                 <Storyboard AutoReverse="True">
  10.                                     <DoubleAnimation To="0" Duration="0:0:0.1" Storyboard.TargetProperty="Width" />
  11.                                     <DoubleAnimation To="0" Duration="0:0:0.1" Storyboard.TargetProperty="Height" />
  12.                                 </Storyboard>
  13.                             </BeginStoryboard>
  14.                         </EventTrigger>
  15.                     </ControlTemplate.Triggers>
  16.                 </ControlTemplate>
  17.                 </Setter.Value>
  18.             </Setter>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement