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_DragStarted(object sender, EventArgs e) { _layer.Pause(); }