Example #1
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
            };
        }
Example #2
0
 public override void OnClickRelease()
 {
     base.OnClickRelease();
     HighlightedColor.SetLerp(obj.SpriteColor, HighlightedColor.To, HighlightedColor.Duration);
 }
Example #3
0
 protected void OnHighlightedColorChanged()
 {
     HighlightedLineStyle = new SKPaint {
         Style = SKPaintStyle.Stroke, Color = HighlightedColor.ToSKColor(), StrokeWidth = 10
     };
 }