コード例 #1
0
        /// <summary>
        /// DiamondColor dependancy property changed, update the instance
        /// </summary>
        /// <param name="dependancy">the dependancy object</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void DiamondColorPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            DiamondSlider instance = dependancy as DiamondSlider;

            if (instance != null && instance.DashboardLoaded)
            {
                instance.UpdateDiamondColor();
            }
        }
コード例 #2
0
        /// <summary>
        /// RightGradient dependancy property changed, update the instance
        /// </summary>
        /// <param name="dependancy">the dependancy object</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void RightGradientPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            DiamondSlider instance = dependancy as DiamondSlider;

            if (instance != null)
            {
                if (instance._slider != null)
                {
                    instance.UpdateRightGradient();
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// Left Gradient dependancy property changed, update the instance
        /// </summary>
        /// <param name="dependancy">the dependancy object</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void LeftGradientPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            DiamondSlider instance = dependancy as DiamondSlider;

            if (instance != null && instance.DashboardLoaded)
            {
                if (instance._slider != null)
                {
                    instance.UpdateLeftGradient();
                }
            }
        }