bring to view

4 posts, 0 answers
  1. Rick Mueller
    Rick Mueller avatar
    103 posts
    Member since:
    Feb 2010

    Posted 26 Apr 2012 Link to this post

    Hello,

    I have wrapped a RadCarousel in a listbox.. Im not able to click on the radcarouselpanel to bring to the front.. Everything works fine

    Help?
    thank you
    Rick
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Apr 2012 Link to this post

    Hi Rick,

     Indeed initially the items of the carousel are not visible - you have to scroll (or click one of the scroll buttons) until the first item is brought into view.

    If you want the first item brought into view once the RadCarousel is loaded, then you can use a similar code:

    private void sampleRadCarousel_Loaded(object sender, RoutedEventArgs e)
           {
               sampleRadCarousel.BringDataItemIntoView(sampleRadCarousel.Items[0]);
           }

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Rick Mueller
    Rick Mueller avatar
    103 posts
    Member since:
    Feb 2010

    Posted 01 May 2012 Link to this post

    Hello,
    Thank you for your reply,, I have the RadCarspanel wrapped in a listbox,, when I click on a far right or left tile it doesn't bring to the front. Your demo does work..but mine moves only with a scrollmouse wheel

    Thanks Rick
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 01 May 2012 Link to this post

    Hi Rick,

    Actually, that would be a kind of an expected behavior since ListBox handles mouse down events on its own and this event is not passed to the RadCarouselPanel.
    I am sending you a sample project illustrating how you can work around this behavior. Please take a look at it and let me know whether it corresponds to your requirements. 

    Greetings,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top