summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WP8')
-rw-r--r--Xamarin.Forms.Platform.WP8/ImageRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WP8/ImageRenderer.cs b/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
index e0574095..9a758c11 100644
--- a/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
@@ -122,7 +122,7 @@ namespace Xamarin.Forms.Platform.WinPhone
}
return Task.FromResult(image);
}
- }
+ }
public sealed class StreamImagesourceHandler : IImageSourceHandler
{
@@ -133,7 +133,7 @@ namespace Xamarin.Forms.Platform.WinPhone
var streamsource = imagesource as StreamImageSource;
if (streamsource != null && streamsource.Stream != null)
{
- using (Stream stream = await streamsource.GetStreamAsync(cancelationToken))
+ using (Stream stream = await ((IStreamImageSource)streamsource).GetStreamAsync(cancelationToken))
{
bitmapimage = new BitmapImage();
bitmapimage.SetSource(stream);