summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/ImageRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WinRT/ImageRenderer.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs b/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
index 16715685..8798b20e 100644
--- a/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
+++ b/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
@@ -91,13 +91,13 @@ namespace Xamarin.Forms.Platform.WinRT
RefreshImage();
}
- ((IImageController)Element)?.SetIsLoading(false);
+ Element?.SetIsLoading(false);
}
void OnImageFailed(object sender, ExceptionRoutedEventArgs exceptionRoutedEventArgs)
{
Log.Warning("Image Loading", $"Image failed to load: {exceptionRoutedEventArgs.ErrorMessage}" );
- ((IImageController)Element)?.SetIsLoading(false);
+ Element?.SetIsLoading(false);
}
void RefreshImage()
@@ -122,7 +122,7 @@ namespace Xamarin.Forms.Platform.WinRT
async Task UpdateSource()
{
- ((IImageController)Element).SetIsLoading(true);
+ Element.SetIsLoading(true);
ImageSource source = Element.Source;
IImageSourceHandler handler;
@@ -155,7 +155,7 @@ namespace Xamarin.Forms.Platform.WinRT
else
{
Control.Source = null;
- ((IImageController)Element)?.SetIsLoading(false);
+ Element?.SetIsLoading(false);
}
}
}