Smoother scrolling animation

4 posts, 0 answers
  1. Julian
    Julian avatar
    16 posts
    Member since:
    Mar 2009

    Posted 23 Nov 2009 Link to this post

    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

  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 26 Nov 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Shrinivas
    Shrinivas avatar
    2 posts
    Member since:
    Dec 2010

    Posted 10 Mar 2011 Link to this post

    Is this still the case, even in Q1 2011?
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 11 Mar 2011 Link to this post

    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!
Back to Top