Hi,
Is there a way for me to select through code the item that is at the forefront ("current item") of the xamCarouselPanel? I am using the Skewing Effects sample.
Thanks
GA
How about something like this:
while (carousel.FirstVisibleItemIndex != desiredIndex){ if (carousel.FirstVisibleItemIndex < desiredIndex) { carousel.ExecuteCommand(XamCarouselPanelCommands.NavigateToNextItem); } else { carousel.ExecuteCommand(XamCarouselPanelCommands.NavigateToPreviousItem); }}
Of course if the "center" item is not the "first visible" item then you'll need to use an offset as well. Hope that helps!
Hi Joe,
Thanks for the response.
What do you mean by "select that item"? I know the index of the item already yet what i need is for this item to be the one centered in the cover flow. You follow me?