/// <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(); } }
/// <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(); } } }
/// <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(); } } }