diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs b/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs index faaa4988..20d2c504 100644 --- a/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs +++ b/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs @@ -10,7 +10,7 @@ namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT -#endif +#endif { public sealed class StreamImagesourceHandler : IImageSourceHandler { @@ -21,7 +21,7 @@ namespace Xamarin.Forms.Platform.WinRT var streamsource = imagesource as StreamImageSource; if (streamsource != null && streamsource.Stream != null) { - using (Stream stream = await streamsource.GetStreamAsync(cancellationToken)) + using (Stream stream = await ((IStreamImageSource)streamsource).GetStreamAsync(cancellationToken)) { if (stream == null) return null; |