summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/ImageRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/ImageRenderer.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/ImageRenderer.cs b/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
index 9a758c11..ebc50adc 100644
--- a/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/ImageRenderer.cs
@@ -27,6 +27,8 @@ namespace Xamarin.Forms.Platform.WinPhone
public class ImageRenderer : ViewRenderer<Image, System.Windows.Controls.Image>
{
+ IElementController ElementController => Element as IElementController;
+
public override SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint)
{
// Someone reported a NRE happening in this method which can only be explained by Control being null