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
195
Selection of Items in Carousel
posted

Hello again,

I have another question about the Xam Carousel List Box item:

When selecting an item, it should be turned to the "front" automatically. An old solution found here was:

while (carousel.FirstVisibleItemIndex != desiredIndex)
{
      if (carousel.FirstVisibleItemIndex < desiredIndex)
      {
            carousel.ExecuteCommand(XamCarouselPanelCommands.NavigateToNextItem);
      }
      else
      {
            carousel.ExecuteCommand(XamCarouselPanelCommands.NavigateToPreviousItem);
      }
}

However, FirstVisibleItemIndex is no longer available as well as the ExecuteCommand Method ...?

another minor question: when I have a round number as "ItemsPerPage" setting, two elements are at the same level in the front. Is there a workaround, that I still can have only ONE selected item in the "pole position" at the front?

Thanks a lot,

Florian