Ejemplo n.º 1
0
        private void ScrollButtonUp_Click(object sender, RoutedEventArgs e)
        {
            ScrollButtonDown.IsEnabled = true;

            scrollOffset -= PlayerScroller.ActualWidth / 10;
            if (scrollOffset <= 0)
            {
                scrollOffset             = 0;
                ScrollButtonUp.IsEnabled = false;
            }
            PlayerScroller.ScrollToVerticalOffset(scrollOffset);
        }
Ejemplo n.º 2
0
        private void ScrollButtonDown_Click(object sender, RoutedEventArgs e)
        {
            ScrollButtonUp.IsEnabled = true;

            scrollOffset += PlayerScroller.ActualHeight / 10;
            if (scrollOffset >= PlayerScroller.ScrollableHeight)
            {
                scrollOffset = PlayerScroller.ScrollableHeight;
                ScrollButtonDown.IsEnabled = false;
            }

            PlayerScroller.ScrollToVerticalOffset(scrollOffset);
        }