summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-05-04 07:08:54 -0600
committerRui Marinho <me@ruimarinho.net>2016-05-04 14:08:54 +0100
commit5b9094241b1d3da5419ed21be30bdcc07c469dbe (patch)
treecd22a4b646a7002c61e4b7fe0714c0f64e483d38 /Xamarin.Forms.Platform.WP8
parenta2148444bafd728090c39c1f40700b43baded1e4 (diff)
downloadxamarin-forms-5b9094241b1d3da5419ed21be30bdcc07c469dbe.tar.gz
xamarin-forms-5b9094241b1d3da5419ed21be30bdcc07c469dbe.tar.bz2
xamarin-forms-5b9094241b1d3da5419ed21be30bdcc07c469dbe.zip
Prep StreamImageSource for removal of InternalsVisibleTo
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);