Пример #1
0
        /// <summary>
        /// IntervalProperty property changed handler.
        /// </summary>
        /// <param name="d">HeatMapLayer that changed its Interval.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnIntensityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if ((double)e.NewValue < 1)
            {
                throw new ArgumentOutOfRangeException("Intensity");
            }
            HeatMapLayer dp = d as HeatMapLayer;

            dp.OnLayerChanged();
        }
Пример #2
0
        /// <summary>
        /// GradientProperty property changed handler.
        /// </summary>
        /// <param name="d">HeatMapLayer that changed its Gradient.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnGradientPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HeatMapLayer dp = d as HeatMapLayer;

            dp.OnLayerChanged();
        }