Frontmost item in RadCarouselPanel after load

3 posts, 1 answers
  1. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 24 May 2010 Link to this post

    Hi,

    I have 5 items in a RadCarouselPanel and I'd like the initial behaviour of the control to show the leftmost item. Whatever i do it always seems to start with the middle item.

    I've tried LineLeft, PageLeft etc etc, during the Loaded event of the control, and although programmatically these methods are having an effect on the HorizontalOffset of the control, by the time it actually displays the middle item is centred again.

    What's up?

    Cheers
    John
  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 25 May 2010 Link to this post

    Hello jwhitley,

    The thing is that RadCarousel initializes an animation for the appearance of the items and as a result the methods in the Loaded event are ignored. So, what you need to do is to set in the definition of the carousel in xaml its property AutoLoadItems to "false".
    I am sending you a sample project so that you are able to see and test the proposed solution.


    All the best,
    Maya
    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
  4. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 28 May 2010 Link to this post

    Works great. Thanks very much.
Back to Top