Carousel Item Focus Problem

4 posts, 0 answers
  1. Robert
    Robert avatar
    3 posts
    Member since:
    Jan 2016

    Posted 11 Feb Link to this post

    I have a carousel that has items that are getting generated dynamically using a DataTemplate. My problem is that I cannot get a GotFocus event to fire on the carousel if an item is clicked. If I don't use the dataTemplate and let the carousel create the items with the properties listed then these items fire the GotFocus event fine. Any ideas?
  2. Robert
    Robert avatar
    3 posts
    Member since:
    Jan 2016

    Posted 11 Feb Link to this post

    Okay, Quick Edit-- I have figured out that if I wrap the items in my DataTemplate in a ScrollViewer the items then get focus, however, when they are clicked they no longer are brought to the front of the carousel unless I click on the small border that is around the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    279 posts

    Posted 15 Feb Link to this post

    Hello Robert,

    Can you please share more details on the exact requirements you aim for? Generally, you can use the SelectionChanged or SelectionChanging events of the RadCarousel which are fired when changing the different items of the control.

    Regards,
    Stefan Nenchev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. Robert
    Robert avatar
    3 posts
    Member since:
    Jan 2016

    Posted 17 Feb in reply to Stefan Nenchev Link to this post

    I got it working. Thanks for the help.
Back to Top