From: 유리나/Common Platform Lab(SR)/Staff Engineer/삼성전자 Date: Fri, 15 May 2020 08:20:26 +0000 (+0900) Subject: Fix CheckRendererer to avoid registerPropertyhandler issue (#227) X-Git-Tag: accepted/tizen/5.5/unified/20200602.155421~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c24691d6b007a5bd917b595391619d637bd745b8;p=platform%2Fcore%2Fcsapi%2Fxsf.git Fix CheckRendererer to avoid registerPropertyhandler issue (#227) --- diff --git a/src/XSF/Tizen.Wearable.CircularUI.Forms.Renderer/CheckRenderer.cs b/src/XSF/Tizen.Wearable.CircularUI.Forms.Renderer/CheckRenderer.cs index 356a9b3..7f87d20 100644 --- a/src/XSF/Tizen.Wearable.CircularUI.Forms.Renderer/CheckRenderer.cs +++ b/src/XSF/Tizen.Wearable.CircularUI.Forms.Renderer/CheckRenderer.cs @@ -38,7 +38,6 @@ namespace Tizen.Wearable.CircularUI.Forms.Renderer public CheckRenderer() { RegisterPropertyHandler(Check.DisplayStyleProperty, UpdateStyle); - RegisterPropertyHandler(Check.ColorProperty, UpdateColor); } protected override void OnElementChanged(ElementChangedEventArgs e) @@ -85,15 +84,6 @@ namespace Tizen.Wearable.CircularUI.Forms.Renderer ((IVisualElementController)Element).NativeSizeChanged(); } - void UpdateColor() - { - var color = ((Check)Element).Color; - if(color != Color.Default) - { - Control.Color = ((Check)Element).Color.ToNative(); - } - } - void OnStateChanged(object sender, EventArgs e) { Element.SetValue(Switch.IsToggledProperty, Control.IsChecked);