protected void DrawSlider(SKCanvas canvas, SKRect chart) { if (!IsSliderVisible) { return; } using (var paint = new SKPaint { Style = SKPaintStyle.Stroke, StrokeCap = SKStrokeCap.Round, Color = this.SliderColor.ToSKColor(), StrokeWidth = this.SliderWidth }) { float x = chart.GetInsideXValue(TouchedPoint.X); // Straight slider line canvas.DrawLine(x, chart.Top, x, chart.Bottom - FrameWidth, paint); DrawDragHintGraphic(canvas, x, chart.GetInsideYValue(TouchedPoint.Y), 0, chart); } }