private async void OnFetchdImage(StorageFolder folder, StorageFile file, GeotaggingResult geotaggingResult) { try { var stream = await file.OpenReadAsync(); await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { var image = new BitmapImage(); image.SetSource(stream); PostviewImage.Source = image; stream.Dispose(); }); } catch { DebugUtil.Log("OpenReadAsync Exception."); } }
protected void OnFailed(DownloaderError error, GeotaggingResult geotaggingResult) { DebugUtil.Log("PictureSyncManager: OnFailed" + error); Failed.Raise(error, geotaggingResult); }
protected void OnFetched(StorageFolder folder, StorageFile file, GeotaggingResult geotaggingResult) { DebugUtil.Log("PictureSyncManager: OnFetched"); Fetched.Raise(folder, file, geotaggingResult); }