Change ElmSharp API to Xamarin.Forms API : ElmSharp.Color -> Xamarin.Forms.Color
authorGeunsun, Lee <gs86.lee@samsung.com>
Tue, 23 May 2017 05:17:20 +0000 (14:17 +0900)
committerGeunSun Lee <gs86.lee@samsung.com>
Tue, 23 May 2017 05:27:53 +0000 (14:27 +0900)
Change-Id: Ib11fd5c58dea3248023762cf1491725bd7238b6c

TVMediaHub/TVMediaHub.Tizen/Utils/NinePatch.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Utils/NinePatchImageRenderer.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageItem.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoItem.xaml.cs

index be87775..c6b70e9 100755 (executable)
@@ -82,14 +82,14 @@ namespace TVMediaHub.Tizen.Utils
         /// <summary>
         /// Identifies the ImageColor bindable property
         /// </summary>
-        public static readonly BindableProperty ImageColorProperty = BindableProperty.Create("ImageColor", typeof(ElmSharp.Color), typeof(NinePatch), ElmSharp.Color.Black);
+        public static readonly BindableProperty ImageColorProperty = BindableProperty.Create("ImageColor", typeof(Color), typeof(NinePatch), Color.Black);
 
         /// <summary>
         /// Gets or sets ImageColor of NinePatchImage
         /// </summary>
-        public ElmSharp.Color ImageColor
+        public Color ImageColor
         {
-            get { return (ElmSharp.Color)GetValue(ImageColorProperty); }
+            get { return (Color)GetValue(ImageColorProperty); }
             set { SetValue(ImageColorProperty, value); }
         }
 
index 4530c9c..762e0a8 100755 (executable)
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+using System;
 using System.ComponentModel;
 using TVMediaHub.Tizen.Utils;
 using Xamarin.Forms.Platform.Tizen;
@@ -65,7 +66,7 @@ namespace TVMediaHub.Tizen.Utils
         private void UpdateImageColor()
         {
             var img = Element as NinePatch;
-            Control.Color = img.ImageColor;
+            Control.Color = new ElmSharp.Color(Convert.ToInt32(img.ImageColor.R), Convert.ToInt32(img.ImageColor.G), Convert.ToInt32(img.ImageColor.B), Convert.ToInt32(img.ImageColor.A));
         }
 
         /// <summary>
index fdd4223..1ebfc27 100755 (executable)
@@ -198,7 +198,7 @@ namespace TVMediaHub.Tizen.Views
             ImgCheck.BorderTop = h5;
             ImgCheck.BorderBottom = h5;
 
-            ImgCheck.ImageColor = ElmSharp.Color.White;
+            ImgCheck.ImageColor = Color.White;
         }
 
         /// <summary>
index 232be55..df2d721 100755 (executable)
@@ -213,7 +213,7 @@ namespace TVMediaHub.Tizen.Views
 
             ContentTitle.FontSize = SizeUtils.GetFontSize(26);
 
-            CheckImage.ImageColor = ElmSharp.Color.White;
+            CheckImage.ImageColor = Color.White;
         }
 
         /// <summary>