Revert "Fix xbuild error to BackgroundRenderer" 16/120716/1
authorsung-su.kim <sung-su.kim@samsung.com>
Fri, 24 Mar 2017 02:04:43 +0000 (11:04 +0900)
committersung-su.kim <sung-su.kim@samsung.com>
Fri, 24 Mar 2017 02:04:47 +0000 (11:04 +0900)
This reverts commit d4162ecf58002c7ddf4d02df514364ad29763277.

Change-Id: Id3961fb19b0766fe3be2695762debd9e21abbc1c

Tizen.Xamarin.Forms.Extension.Renderer/RadioButtonRenderer.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ff420fb..27cf855
@@ -8,10 +8,8 @@ using Xamarin.Forms.Platform.Tizen.Native;
 using Tizen.Xamarin.Forms.Extension;
 using Tizen.Xamarin.Forms.Extension.Renderer;
 using TForms = Xamarin.Forms.Platform.Tizen.Forms;
-using XColor = Xamarin.Forms.Color;
 
 [assembly: ExportRenderer(typeof(RadioButton), typeof(RadioButtonRenderer))]
-
 namespace Tizen.Xamarin.Forms.Extension.Renderer
 {
     public class RadioButtonRenderer : ViewRenderer<RadioButton, Radio>
@@ -114,7 +112,7 @@ namespace Tizen.Xamarin.Forms.Extension.Renderer
 
         void UpdateTextColor()
         {
-            _span.ForegroundColor = ConvertToNativeColor(Element.TextColor);
+            _span.ForegroundColor = Element.TextColor.ToNative();
         }
 
         void UpdateFont()
@@ -177,18 +175,6 @@ namespace Tizen.Xamarin.Forms.Extension.Renderer
             }
             Control.EdjeObject.EmitSignal(emission, "elm");
         }
-
-        public Color ConvertToNativeColor(XColor c)
-        {
-            if (c == XColor.Default)
-            {
-                return Color.Default;
-            }
-            else
-            {
-                return new Color((int)(255.0 * c.R), (int)(255.0 * c.G), (int)(255.0 * c.B), (int)(255.0 * c.A));
-            }
-        }
     }
 
     internal class RadioGroupManager
@@ -252,4 +238,4 @@ namespace Tizen.Xamarin.Forms.Extension.Renderer
             }
         }
     }
-}
\ No newline at end of file
+}