This is a migrated thread and some comments may be shown as answers.

Center Item without Animating

1 Answer 77 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 21 Dec 2010, 04:32 PM
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>

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 23 Dec 2010, 12:55 PM
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
Tags
Carousel
Asked by
Scott
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or