Element appear centered

2 posts, 0 answers
  1. Paulo
    Paulo avatar
    8 posts
    Member since:
    Oct 2007

    Posted 01 Apr 2011 Link to this post

    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...
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 04 Apr 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top