December 2018
Intermediate to advanced
416 pages
10h 30m
English
While the image is being panned, we want to update the state:
private void PanRunning(PanUpdatedEventArgs e){ photo.TranslationX = e.TotalX; photo.TranslationY = e.TotalY; photo.Rotation = _initialRotation + (photo.TranslationX / 25); CalculatePanState(e.TotalX);}
This addition to the PanRunning() method passes the total amount of movement on the x axis to the CalculatePanState() method to determine if we need to adjust the opacity of either the StackLayout on the right or the left of the control.
Read now
Unlock full access