summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Image.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-05-02 14:56:03 -0600
committerE.Z. Hart <hartez@users.noreply.github.com>2016-05-02 14:56:03 -0600
commitd11bc09e75b5ebad2b2e053d3a4b3bb476d9493d (patch)
tree5ae5f0246d3c462ab67a1f48c10eeed640c3705f /Xamarin.Forms.Core/Image.cs
parent93f22aaf28a3580b19559a793e2a3e6cd91b9bdb (diff)
downloadxamarin-forms-d11bc09e75b5ebad2b2e053d3a4b3bb476d9493d.tar.gz
xamarin-forms-d11bc09e75b5ebad2b2e053d3a4b3bb476d9493d.tar.bz2
xamarin-forms-d11bc09e75b5ebad2b2e053d3a4b3bb476d9493d.zip
Prep Image for removal of InternalsVisibleTo (#140)
Diffstat (limited to 'Xamarin.Forms.Core/Image.cs')
-rw-r--r--Xamarin.Forms.Core/Image.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Image.cs b/Xamarin.Forms.Core/Image.cs
index 9e329331..4528f3b9 100644
--- a/Xamarin.Forms.Core/Image.cs
+++ b/Xamarin.Forms.Core/Image.cs
@@ -4,7 +4,7 @@ using Xamarin.Forms.Platform;
namespace Xamarin.Forms
{
[RenderWith(typeof(_ImageRenderer))]
- public class Image : View
+ public class Image : View, IImageController
{
public static readonly BindableProperty SourceProperty = BindableProperty.Create("Source", typeof(ImageSource), typeof(Image), default(ImageSource), propertyChanging: OnSourcePropertyChanging,
propertyChanged: OnSourcePropertyChanged);
@@ -141,5 +141,10 @@ namespace Xamarin.Forms
oldvalue.SourceChanged -= OnSourceChanged;
await oldvalue.Cancel();
}
+
+ void IImageController.SetIsLoading(bool isLoading)
+ {
+ SetValue(IsLoadingPropertyKey, isLoading);
+ }
}
} \ No newline at end of file