This is a migrated thread and some comments may be shown as answers.

Smoother scrolling animation

3 Answers 139 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 23 Nov 2009, 05:40 PM
Hi

I'd like to customize the Carousel. I'm using the Coverflow example, version 2009.3.1103.35, .NET 3.5 SP1, Vista x64 and VS 2008.

What I'm trying to achieve here is a smoother animation than the default per-element animation. So currently to move you can either click on an image/control within the carouselpanel or scroll using the scrollviewer. I want to make this smoother (think iPhone scrolling) by preventing image clicking and relaying the mouse move delta to the scrollviewer.

So I'm handling the coverflow control's mouse left click event (and set Handled to True) to set a reference point and prevent clicks reaching the images. Then I'm handling the mouse move event and retrieving the delta by subtracting destination and source X from the two MouseEventArgs provided by the event.

How can I relay this delta (of type double) to the scrollviewer (incrementally) to simulate this effect? I'm guessing the control's ScrollOwner property may play a role, but I would like your input on this. Could I perhaps use the RaiseEvent method?

Thanks

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 26 Nov 2009, 04:06 PM
Hi Julian,

It would be a really nice feature to have the option to move the carousel by non-discrete amount but for the time being I am afraid that this is impossible. Currently the default movement behavior cannot be disabled and an carousel will always move when you click on an item. 

To be able to support such scenarios we should modify the internal carousel logic but I am not sure if we will be able to start working on this soon. I will try something out in the next few days to see if we can introduce this without a lot of modifications and report back.

Best wishes,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Shrinivas
Top achievements
Rank 1
answered on 10 Mar 2011, 05:52 PM
Is this still the case, even in Q1 2011?
0
Maya
Telerik team
answered on 11 Mar 2011, 08:26 AM
Hi Shrinivas,

Basically, this behavior is still the same as modifying it will require changing the internal logic of the carousel, which at this time will not be a recommended thing to do. 
Please, excuse us in case we cause any inconvenience. 
 

Greetings,
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Carousel
Asked by
Julian
Top achievements
Rank 1
Answers by
Milan
Telerik team
Shrinivas
Top achievements
Rank 1
Maya
Telerik team
Share this question
or