private void PointerOnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (Viewer == null) { return; } AnimaterPage = CarouselPages[_lastIndex]; if (_lastIndex < Pointer.SelectedIndex) { Viewer.BeginStoryboard((Storyboard)Resources["SlideLeftToRight"]); } else { Viewer.BeginStoryboard((Storyboard)Resources["SlideRightToLeft"]); } _lastIndex = Pointer.SelectedIndex; }
public Page3() { InitializeComponent(); CarouselPage = new CarouselPage("Page 3", this); }