示例#1
0
 protected void OnPrecisionIndicatorColorChanged()
 {
     PrecisionIndicatorStyle = new SKPaint()
     {
         Color = PrecisionIndicatorColor.ToSKColor(), BlendMode = SKBlendMode.DstOver
     };
 }
示例#2
0
        public GaugeViewModel()
        {
            PaintCommand = new DelegateCommand <PaintCommandParameter>(Paint);

            ClearStyle = new SKPaint()
            {
                Color = SKColors.Empty, BlendMode = SKBlendMode.Src
            };
            DirectionArrowStyle = new SKPaint {
                Style = SKPaintStyle.Fill, Color = Color.ToSKColor(), IsAntialias = true
            };
            PrecisionIndicatorStyle = new SKPaint()
            {
                Color = PrecisionIndicatorColor.ToSKColor(), BlendMode = SKBlendMode.DstOver
            };
            HighlightedLineStyle = new SKPaint {
                Style = SKPaintStyle.Stroke, Color = HighlightedColor.ToSKColor(), StrokeWidth = 10
            };
            LineStyle = new SKPaint {
                Style = SKPaintStyle.Stroke, Color = Color.ToSKColor(), StrokeWidth = 5
            };
            TextStyle = new SKPaint {
                TextSize = 40.0f, IsAntialias = true, IsStroke = false
            };
        }