Center Item without Animating

2 posts, 0 answers
  1. Scott
    Scott avatar
    42 posts
    Member since:
    Oct 2007

    Posted 21 Dec 2010 Link to this post

    I need to call BringDataItemIntoView on the RadCarousel control, but I do not want it to animate. I have this need because I want the Carousel to remember the last selected item and bring that item to center when it reloads, but I do not want it re-animate. My carousel is defined like so:

    <telerik:RadCarousel Name="Scenes" Background="Transparent" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled" Loaded="LoadCarousel">
                <telerik:RadCarouselPanel AutoLoadItems="false" ItemsPerPage="5" TopContainerChanged="RadCarouselPanel_TopContainerChanged" />
  2. Maya
    Maya avatar
    4062 posts

    Posted 23 Dec 2010 Link to this post

    Hi Scott,

    You may use the ItemsMovementAnimationDuration property of the RadCarouselPanel:

        <telerik:RadCarouselPanel AutoLoadItems="false" ItemsPerPage="5" ItemsMovementAnimationDuration="0:0:0" />

    All the best,
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. DevCraft R3 2016 release webinar banner
Back to Top