<Grid>

<!--다수의 속성을 같은 값으로 변화시키고 싶을때-->

<!--Height값을 Width값과 Binding시키고 Width DoubleAnimation-->

<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Width="48"

Height="{Binding RelativeSource={RelativeSource self}, Path=Width}" Fill="Pink">

<Ellipse.Triggers>

<EventTrigger RoutedEvent="Ellipse.MouseDown">

<BeginStoryboard>

<Storyboard>

<DoubleAnimation

Storyboard.TargetProperty="Width"

From="48" To="300"

Duration="0:0:.5"

RepeatBehavior="3x"

FillBehavior="Stop"/>

</Storyboard>

</BeginStoryboard>

</EventTrigger>

</Ellipse.Triggers>

</Ellipse>

</Grid>


by 피요히코~ 2009. 2. 25. 13:06