summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorckrempp91 <chrisk@msidata.com>2016-10-12 06:45:08 -0500
committerRui Marinho <me@ruimarinho.net>2016-10-12 12:45:08 +0100
commit36d9dceb4f26cf1e068f153f811a34960bc36d68 (patch)
treec211fb05b150087ab498cfa56b7756862f77676a /Xamarin.Forms.Platform.WinRT
parent50ac8e06da7ca2fc44dc33a4dbc96d24a597f037 (diff)
downloadxamarin-forms-36d9dceb4f26cf1e068f153f811a34960bc36d68.tar.gz
xamarin-forms-36d9dceb4f26cf1e068f153f811a34960bc36d68.tar.bz2
xamarin-forms-36d9dceb4f26cf1e068f153f811a34960bc36d68.zip
Modified type cast to appropriate type (#447)
I changed the type cast from BitmapImage to BitmapSource because if you want to do image manipulation, in UWP, you use the WriteableBitmap class.
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/ImageRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs b/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
index fa676c18..16715685 100644
--- a/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
+++ b/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
@@ -25,7 +25,7 @@ namespace Xamarin.Forms.Platform.WinRT
_measured = true;
- var result = new Size { Width = ((BitmapImage)Control.Source).PixelWidth, Height = ((BitmapImage)Control.Source).PixelHeight };
+ var result = new Size { Width = ((BitmapSource)Control.Source).PixelWidth, Height = ((BitmapSource)Control.Source).PixelHeight };
return new SizeRequest(result);
}
@@ -159,4 +159,4 @@ namespace Xamarin.Forms.Platform.WinRT
}
}
}
-} \ No newline at end of file
+}