From 63a755afe1aefa0324849570fc499902ab7a8400 Mon Sep 17 00:00:00 2001 From: SungHyun Min Date: Fri, 17 Mar 2017 14:18:00 +0900 Subject: [PATCH] Add UpdateAfterloading method in Image - for supporting 9-patch image : http://suprem.sec.samsung.net/confluence/display/SPTDTLC/Supporting+9-Patch+Image Change-Id: I5166b1ebda5f3e362cb5fd429a9c57fb0362a4aa Signed-off-by: SungHyun Min --- Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) mode change 100755 => 100644 Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs old mode 100755 new mode 100644 index 3617b70..f402178 --- a/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs @@ -61,8 +61,7 @@ namespace Xamarin.Forms.Platform.Tizen if (!IsDisposed && success) { ((IVisualElementController)Element).NativeSizeChanged(); - UpdateIsOpaque(); - UpdateBlendColor(); + UpdateAfterLoading(); } } @@ -70,6 +69,12 @@ namespace Xamarin.Forms.Platform.Tizen ((IImageController)Element).SetIsLoading(false); } + protected virtual void UpdateAfterLoading() + { + UpdateIsOpaque(); + UpdateBlendColor(); + } + void UpdateAspect() { Control.Aspect = Element.Aspect; @@ -142,5 +147,4 @@ namespace Xamarin.Forms.Platform.Tizen return Task.FromResult(false); } } -} - +} \ No newline at end of file -- 2.7.4