Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Carousel > Stop scrolling left when first item is in the centre (topmost)

Not answered Stop scrolling left when first item is in the centre (topmost)

Feed from this thread
  • James avatar

    Posted on Jan 28, 2011 (permalink)

    Hi,

    I want the carousel to stop scrolling left when the first item is in the centre of the screen (the topmost item).
    I also want the carousel to stop scrolling right when the last item is in the centre of the screen (the topmost item).

    Currently, you can continue scrolling left/right until the first or last item is on the extreme left or right of the screen.

    Is there anyway to do this?

    Also, is there anyway of setting the carousel to wrap around when you come to the end of the items?

    Thanks

    Reply

  • Maya Maya admin's avatar

    Posted on Feb 2, 2011 (permalink)

    Hello James,

    I am sending you a sample project illustrating how you may achieve the desired result. Let me know in case it does not meet your requirements.

    Kind regards,
    Maya
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>

    Reply

  • Robert Intermediate avatar

    Posted on Sep 15, 2011 (permalink)

    Hi there,

    I tried your example as it works when moving through the items using the control buttons, however when scrolling with the mouse scroll wheel it still continues past the first and last items.

    Are you able to stop as required when using the mouse scroll wheel?

    Thanks,

    Rob

    Reply

  • Maya Maya admin's avatar

    Posted on Sep 16, 2011 (permalink)

    Hello Robert,

    That would be the expected behavior since the logic for moving till the centered item is implemented only for the Click events of the buttons. If you want to get similar behavior when scrolling, you can try to handle ScrollChanged event of the ScrollViewer and implement the required logic:

    <telerik:RadCarouselScrollViewer.ScrollChanged="RadCarousel_ScrollChanged"/>
     

    Best wishes,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Carousel > Stop scrolling left when first item is in the centre (topmost)
Related resources for "Stop scrolling left when first item is in the centre (topmost)"

WPF Carousel Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]