summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Image.cs29
1 files changed, 4 insertions, 25 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Image.cs b/Xamarin.Forms.Platform.Tizen/Native/Image.cs
index 37602a0f..e4ec267a 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Image.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Image.cs
@@ -1,9 +1,8 @@
using System.Threading.Tasks;
-using Xamarin.Forms.Internals;
using ElmSharp;
+using Xamarin.Forms.Internals;
using EImage = ElmSharp.Image;
using ESize = ElmSharp.Size;
-using EColor = ElmSharp.Color;
namespace Xamarin.Forms.Platform.Tizen.Native
{
@@ -13,7 +12,6 @@ namespace Xamarin.Forms.Platform.Tizen.Native
public class Image : EImage, IMeasurable
{
Aspect _aspect;
- bool _imageLoadCompleted;
/// <summary>
/// Initializes a new instance of the <see cref="Xamarin.Forms.Platform.Tizen.Native.Image"/> class.
@@ -49,38 +47,19 @@ namespace Xamarin.Forms.Platform.Tizen.Native
}
/// <summary>
- /// Gets or sets the image color.
- /// </summary>
- public override EColor Color
- {
- get
- {
- return base.Color;
- }
- set
- {
- if (_imageLoadCompleted)
- {
- base.Color = value;
- }
- }
- }
-
- /// <summary>
/// Loads image data from the given <see cref="Xamarin.Forms.ImageSource"/> asynchronously.
/// </summary>
/// <returns>A task which will be completed when image data is loaded.</returns>
/// <param name="source">Image source specifying from where the image data has to be loaded.</param>
public async Task<bool> LoadFromImageSourceAsync(ImageSource source)
{
- _imageLoadCompleted = false;
IImageSourceHandler handler;
if (source != null && (handler = Registrar.Registered.GetHandler<IImageSourceHandler>(source.GetType())) != null)
{
- _imageLoadCompleted = await handler.LoadImageAsync(this, source);
+ return await handler.LoadImageAsync(this, source);
}
- return _imageLoadCompleted;
+ return false;
}
/// <summary>
@@ -144,4 +123,4 @@ namespace Xamarin.Forms.Platform.Tizen.Native
}
}
}
-}
+} \ No newline at end of file