private static void MercuryColorRangeChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            WallThermometer instance = dependancy as WallThermometer;

            if (instance != null)
            {
                instance._delegate.MercuryColorRange = instance.MercuryColorRange;
            }
        }
        /// <summary>
        /// The value of the IsBidirectional property has changed. We call animate to allow any focus
        /// handle to be rendered
        /// </summary>
        /// <param name="dependancy">The dependancy.</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void IsBidirectionalPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            WallThermometer instance = dependancy as WallThermometer;

            if (instance != null)
            {
                instance.IsBidirectional = (bool)args.NewValue;
            }
        }