Skip to content

Commit 62bd8bc

Browse files
fixes #1983
1 parent fabec9b commit 62bd8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/skiasharp/LiveChartsCore.SkiaSharp.WinForms/MotionCanvas.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private void SkglControl_PaintSurface(object sender, SKPaintGLSurfaceEventArgs e
8989
new SkiaSharpDrawingContext(CanvasCore, e.Surface.Canvas, GetBackground()));
9090

9191
private SKColor GetBackground() =>
92-
((IChartView)Parent!)?.BackColor.AsSKColor() ?? SKColor.Empty;
92+
(Parent as IChartView)?.BackColor.AsSKColor() ?? SKColor.Empty;
9393

9494
void IRenderMode.InitializeRenderMode(CoreMotionCanvas canvas) =>
9595
throw new NotImplementedException();

0 commit comments

Comments
 (0)