/// <summary> /// Loads the image /// </summary> public async Task LoadImage() { try { var fileStream = await SourceFile.OpenAsync(FileAccessMode.Read); if (Rotation != BitmapRotation.None) { var rotatedStream = await BitmapTools.Rotate(fileStream, Rotation); await _cropControl.LoadImage(rotatedStream); } else { await _cropControl.LoadImage(fileStream); } } catch (Exception exception) { _telemetryClient.TrackException(exception); await _dialogService.ShowNotification("InvalidImage_Message", "InvalidImage_Title"); _navigationFacade.GoBack(); } }