Exemplo n.º 1
0
        /// <summary>
        /// Set the needle color from the range
        /// </summary>
        protected override void UpdateNeedleColor()
        {
            var c = NeedleColorRange.GetColor(Value);

            if (c != null)
            {
                _needle.Fill = new SolidColorBrush(c.HiColor);
            }
        }
Exemplo n.º 2
0
        protected override void UpdateNeedleColor()
        {
            ColorPoint c = NeedleColorRange.GetColor(Value);

            if (c != null)
            {
                this.needleHighColorGradientStop.Color = c.HiColor;
                this.needleLowColorGradientStop.Color  = c.LowColor;
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Set the needle color from the range
        /// </summary>
        protected override void UpdateNeedleColor()
        {
            var c = NeedleColorRange.GetColor(Value);

            if (c != null)
            {
                _needleHighColour.Color = c.HiColor;
                _needleLowColour.Color  = c.LowColor;
            }
        }