/// <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); }
}
* limitations under the License.
*/
+using System;
using System.ComponentModel;
using TVMediaHub.Tizen.Utils;
using Xamarin.Forms.Platform.Tizen;
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>