Skip to main content

Microsoft Silverlight

Answered Question Create Image CarouselRSS Feed

(0)

quanghoc
quanghoc

Member

Member

18 points

59 Posts

Create Image Carousel

I try to copy the same effect as on www.emc.com (choose your location first) for the photo Carousel on the front page. What is the best approach for this? I drew 5 <Path > as each path as a slide. But how to go about the movement. Is there a way to draw invisible line and attach each <Path> to it to move. My animation knowledge of Silverlight is limited. How would it be different from this one: http://www.nikhilk.net/SilverlightCarousel1.aspx ?

 

Any guidance is helpful. Thanks.

Simbalight
Simbalight

Member

Member

245 points

87 Posts

Answered Question

Re: Create Image Carousel

To animate your items use DoubleAnimation (probably with keyframes) to Animate the Canvas.Left, Canvas.Top properties (alternatively use TranslateTransform). The same you can do with the Width and Height properties (or use ScaleTransform instead). You should also adapt the Canvas.ZIndex property at the correct time.

I would recommend you to download the Silverlight Documentation for Beta 2. It contains only SL2 relevant stuff and shows you how to set up and use animations step by step.

 

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Create Image Carousel

Hello, if you need complex movement, I'm afraid Storyboard is incapable of that... Currently motion path is not supported. You'll have to write code to move the objects with some math tricks. This is how carousels and page turns are done. Here's a video showing you how to create a basic carousel.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities