summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-04-11 14:02:06 -0400
committerRui Marinho <me@ruimarinho.net>2017-04-11 19:02:06 +0100
commit093a4efa2da9cb681890158ca8ee9bb6f30b0a8c (patch)
treeccc17255876e40d2c845d7b2c62dfc930156729d /Xamarin.Forms.Platform.WinRT/ImageRenderer.cs
parent7458ca37330f424bf7fb1447580b0fa9c34c6db4 (diff)
downloadxamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.tar.gz
xamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.tar.bz2
xamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.zip
Implicit impl of controller ifaces (#807)
* Simplify ICtrl callsites * Rebase fix
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);
}
}
}