Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
How can I get ahold of the current item?
posted

I am using CarouselPanel.ExecuteCommand(XamCarouselPanelCommands.NavigateToNextItem) in a timer to automatically move to the next item.  How can I get a hold of the current item as I need to perform other actions on the screen when certain items are "selected".  I have looked at the ExecutingCommand/ExecutedCommand events, but can't seem to find a way to know what is "selected".

Thanks for your help.

Mike

Parents
  • 69686
    posted

    Hello Mike,

    You have to select the items manually when the carousel panel is rotating. To do that,

    you can handle the ExecutedCommand event and check which command is executed :

    if(e.Command == XamCarouselPanelCommands.NavigateToNextItem)

    {

    //custom logic.

    }

    Hope this helps.

Reply Children