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

Element appear centered

1 Answer 35 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 01 Apr 2011, 09:32 PM
Hi friends,

My ItemsSource contains only 1 element. Is there a way to make carousel  show it in the center? Because I'm having to click in nav buttons to make this element appears...

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 04 Apr 2011, 07:13 AM
Hello Paulo,

 

You may subscribe to the RadCarousel's Loaded event and using the MoveBy method you can perform programmatic item movement, please refer to the snippet below:


private void carousel_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
    this.carousel.FindCarouselPanel().MoveBy(3);
}



If you need any additional information please let us know.


Best wishes,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Carousel
Asked by
Paulo
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or