Which event is fired when the carousel item is changed or moved?

5 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 25 Dec 2008 Link to this post

    Hi..
    What event is fired when the carousel is 'moved' either by MoveBy or using the Horiz/Vertical  scrollbars?
    Can the scrollbars be customized?
    Thanks again.!
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 27 Dec 2008 Link to this post

    Hello Jon,

    The carousel does not have such event but since it relies on a ScrollViewer you can use the ScrollChanged event of the ScrollViewer class to determine when the carousel has moved. All you need to do is to hook up to the ScrollChanged event like that:

    <Grid> 
        <telerik:RadCarousel ScrollViewer.ScrollChanged="CarouselScrollChanged" /> 
    </Grid> 

    We are always looking for ways to improve our products and your question about the event got us intrigued. Could you share with us your application scenario where such event is needed? We could possibly introduce an event that is similar to the ScrollChanged event in a future release.

    The answer to your second question is very straightforward - the scrollbars are fully customizable. You may refer to this sample project to find out how the default appearance of the scrollbars can be changed. There are three examples in this sample project - the one called ModifiedStyles contains the information that you are looking for.

    All the best,
    Milan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 27 Dec 2008 Link to this post

    HI..
    thanks for the info.
    I'm using the Carousel as a rolodex with pictures of the user and general info. When the Item is clicked on I update the detail in grids and textboxes below the carousel - i want to reset the textboxes and grids when the carousel is 'changed' or ScrollChanged.
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 29 Dec 2008 Link to this post

    Hi Jon,

    We will take into consideration adding such event to the RadCarousel. You have provided us with a very valuable feedback and your telerik poits have been updated accordingly.

    Since you can now only use the ScrollChanged event, I just want to ask you if it is sufficient for your scenario?

    Regards,
    Milan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Nor
    Nor avatar
    1 posts
    Member since:
    Jan 2009

    Posted 29 Jan 2009 Link to this post

    However ScrollViewer.ScrollChanged  event is called when items moves and gone to the code but it dosent reflect the interface on wpf like updating details according to current item .But SelectionChanged reflects the interface.

Back to Top
UI for WPF is Visual Studio 2017 Ready