예제 #1
0
        /// <summary>
        /// The <see cref="TurnDirection"/> PropertyChangedCallback function.
        /// </summary>
        /// <param name="d">The <see cref="Carousel"/> control whose <see cref="TurnDirection"/> property changed.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs which contains the old and new values.</param>
        private static void OnTurnDirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Carousel carousel = d as Carousel;

            carousel.TurnDirectionChanged((TurnDirection)e.NewValue);
        }
예제 #2
0
        /// <summary>
        /// <see cref="Duration"/> PropertyChangedCallback function.
        /// </summary>
        /// <param name="d">The <see cref="Carousel"/> control whose <see cref="Duration"/> property changed.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs which contains the old and new values.</param>
        private static void OnDurationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Carousel carousel = d as Carousel;

            carousel.DurationChanged();
        }
예제 #3
0
        /// <summary>
        /// <see cref="AutoTurn"/> PropertyChangedCallback static function.
        /// </summary>
        /// <param name="d"><see cref="Carousel"/> control whose <see cref="AutoTurn"/> property is changed.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs which contains the old and new values.</param>
        private static void OnAutoTurnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Carousel carousel = d as Carousel;

            carousel.AutoTurnChanged((bool)e.NewValue);
        }