Ejemplo n.º 1
0
        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."); }
        }
Ejemplo n.º 2
0
 protected void OnFailed(DownloaderError error, GeotaggingResult geotaggingResult)
 {
     DebugUtil.Log("PictureSyncManager: OnFailed" + error);
     Failed.Raise(error, geotaggingResult);
 }
Ejemplo n.º 3
0
 protected void OnFetched(StorageFolder folder, StorageFile file, GeotaggingResult geotaggingResult)
 {
     DebugUtil.Log("PictureSyncManager: OnFetched");
     Fetched.Raise(folder, file, geotaggingResult);
 }