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:RadCarousel.ItemsPanel>
            <ItemsPanelTemplate>
                <telerik:RadCarouselPanel AutoLoadItems="false" ItemsPerPage="5" TopContainerChanged="RadCarouselPanel_TopContainerChanged" />
            </ItemsPanelTemplate>
        </telerik:RadCarousel.ItemsPanel>
    </telerik:RadCarousel>
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 23 Dec 2010 Link to this post

    Hi Scott,

    You may use the ItemsMovementAnimationDuration property of the RadCarouselPanel:

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

    All the best,
    Maya
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top