diff options
author | SungHyun Min <shyun.min@samsung.com> | 2017-03-17 14:18:00 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-03-24 13:19:03 +0900 |
commit | 1644ebc5ff66520275083eca459f506a1fd26efb (patch) | |
tree | 1117f77caef3c4896436eb6302aff55d793c123d | |
parent | 88646fa55cd16318cdbb73085a7428663899642d (diff) | |
download | xamarin-forms-1644ebc5ff66520275083eca459f506a1fd26efb.tar.gz xamarin-forms-1644ebc5ff66520275083eca459f506a1fd26efb.tar.bz2 xamarin-forms-1644ebc5ff66520275083eca459f506a1fd26efb.zip |
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 <shyun.min@samsung.com>
-rw-r--r--[-rwxr-xr-x] | Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ImageRenderer.cs index 3617b70e..f402178b 100755..100644 --- 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<bool>(false); } } -} - +}
\ No newline at end of file |