Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Animating an object along a path
3 replies. Latest Post by budalicious on May 8, 2008.
(0)
achobbs
Member
0 points
2 Posts
03-19-2008 1:30 AM |
I am wanting to animate an object along a path. Is it possible to create an animate that can take a Path object that has multiple BezierSegment objects in the PathFigures collection?
If not, I'm guesing I would just need to use SplineKeyFrames but it would be much easier to just setup a Path that identifies how the X/Y should transform and then run the animation against the Path object.
Thanks
wlamartin
45 points
30 Posts
03-19-2008 3:55 PM |
I recall reading a few days back that animation along a path was not yet available but cannot locate the source.
It is something I wanted to do, so I simply drew a path and positioned the object at successive points on the path to make a crude approximation of that.
Allen Ch...
Star
13862 points
1,803 Posts
03-20-2008 10:53 PM |
Hi:
Unfortunately it's not supported yet. To achieve your requirement you might have to use a timer and do the animation yourself.
Regards
budalicious
36 points
22 Posts
05-08-2008 7:27 AM |
I've managed to do this with a bit of a nasty workaround contrary to what MS/everyone else says.
WPF supports animation along a path so what you can do is create a storyboard in a wpf project then copy the XAML to a new Silverlight project.
You will need to do some hackery to get rid of WPF specific tags though but it does work