Animation Behaviours

Brandon Furtwangler has posted an article on the WPF Forums about his extension to WPF called ‘Animation Behaviours’.

Basically it allows you to add an attached property to any FrameworkElement which defines the behaviour of an animation when something happens.

eg

<Rectangle
my:AnimationBehaviorHost.LoadedBehavior="SlideInFromTop
"

           my:AnimationBehaviorHost.ClickBehavior="Jiggle"

           my:AnimationBehaviorHost.UnloadedBehavior="SlideOutToBottom"

        Width="200"
Height="100
"

        Fill="red" />

How cool is that?

Download the demo he’s done and marvel at the simplicity!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: