private void StartStopRunning(bool shouldPause) { if (shouldPause) { _isRunning = false; _layer.Pause(); Device.BeginInvokeOnMainThread(() => { StartStopButton.Text = "Start"; }); StartStopButton.BackgroundColor = Color.Green; } else { _isRunning = true; _layer.Resume(); Device.BeginInvokeOnMainThread(() => { StartStopButton.Text = "Stop"; }); StartStopButton.BackgroundColor = Color.Red; } }
private void LengthSlider_DragCompleted(object sender, EventArgs e) { _layer.Resume(); }