Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public Page3()
        {
            InitializeComponent();

            CarouselPage = new CarouselPage("Page 3", this);
        }