views:

111

answers:

2

I have an image on my silverlight app and I want it to shake a little bit when the mouse is on top.

How can I achieve this? I'm really new to silverlight animations.

I need it to bounce a bit and tilt from left to right. Can anyone help?

+2  A: 

You could animate the Image's Margin property, say from -5 0 0 0 through 5 0 0 0.

HTH, Kent

Kent Boogaart
+1  A: 

You could also cause the top-left point of the image to rotate along a tight circle very quickly, depending on how you want the "jitter" to look...

There's also this demo from Nikhil Kothari:

http://www.nikhilk.net/Content/Posts/BouncingPlane/BouncingPlane.htm

Dave Swersky