diff options
author | ckrempp91 <chrisk@msidata.com> | 2016-10-12 06:45:08 -0500 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-10-12 12:45:08 +0100 |
commit | 36d9dceb4f26cf1e068f153f811a34960bc36d68 (patch) | |
tree | c211fb05b150087ab498cfa56b7756862f77676a | |
parent | 50ac8e06da7ca2fc44dc33a4dbc96d24a597f037 (diff) | |
download | xamarin-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.
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/ImageRenderer.cs | 4 |
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 +} |