diff options
author | darkleem <cdark.lim@samsung.com> | 2017-09-12 20:14:38 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:41 +0900 |
commit | 77a6a31340c54dc8ef8b5898d4821ac00c4b7c30 (patch) | |
tree | 839c00792907b0ecdce353c3a346dc215ad96b95 /Xamarin.Forms.Platform.Tizen | |
parent | b677d55e31e6cbfe394ea8e72d590dc72078b3f9 (diff) | |
download | xamarin-forms-77a6a31340c54dc8ef8b5898d4821ac00c4b7c30.tar.gz xamarin-forms-77a6a31340c54dc8ef8b5898d4821ac00c4b7c30.tar.bz2 xamarin-forms-77a6a31340c54dc8ef8b5898d4821ac00c4b7c30.zip |
Remove unnecessary implementation of Native.Image Property
- Delete of color property
- Remove obsolete Member variables
Change-Id: If7ef78881cf2dd618152290dc79104418923a776
Signed-off-by: darkleem <cdark.lim@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/Image.cs | 29 |
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 |