Skip to main content

Microsoft Silverlight

Answered Question Animating an object along a pathRSS Feed

(0)

achobbs
achobbs

Member

Member

0 points

2 Posts

Animating an object along a path

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
wlamartin

Member

Member

45 points

30 Posts

Answered Question

Re: Animating an object along a path

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 Chen – MSFT
Allen Ch...

Star

Star

13662 points

1,780 Posts

Answered Question

Re: Animating an object along a path

Hi:

  Unfortunately it's not supported yet. To achieve your requirement you might have to use a timer and do the animation yourself.


Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

budalicious
budalicious

Member

Member

36 points

22 Posts

Re: Animating an object along a path

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities