private async void BackgroundList_ItemClick(Object sender, ItemClickEventArgs e) { try { var foreground = await PreviewControl.CapturePhotoAsync(ApplicationData.Current.TemporaryFolder, Guid.NewGuid().ToString()); var blobService = new Services.BlobService.BlobService(accountName, blobKey, "launch", "face"); await blobService.UploadAsync(foreground); var payload = new FaceSwapDetails() { key = swapKey, envfilename = e.ClickedItem as string, facefilename = foreground.Name }; new Services.FaceSwapService().PostAsync(payload); var contentDialog = new ContentDialog { Title = "Message", Content = "Done", PrimaryButtonText = "Ok" }; await contentDialog.ShowAsync(); } finally { // TODO } }