private void PaintWaveFormCanvas(object sender, SKPaintSurfaceEventArgs e) { if (_waveForm != null && !_hasLoaded) { //We only need to do this once _hasLoaded = true; _waveForm.DrawOnCanvas(e.Surface.Canvas); } }