summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-01-06 15:43:46 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-03-24 13:18:59 +0900
commit427d4c896d8722102508629b117f8bff8bc10ed7 (patch)
treeb2c417583ee8e92a0c43234461b9d78c565e1453 /Xamarin.Forms.Core
parentef508442d46c0bb33f76309d28f2379c251cd576 (diff)
downloadxamarin-forms-427d4c896d8722102508629b117f8bff8bc10ed7.tar.gz
xamarin-forms-427d4c896d8722102508629b117f8bff8bc10ed7.tar.bz2
xamarin-forms-427d4c896d8722102508629b117f8bff8bc10ed7.zip
Support BlendColor to Image as a TizenSpecific API
Change-Id: Ic3068b3c0834605be5d45cc5f1a96d6933a0856f
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Image.cs30
-rw-r--r--Xamarin.Forms.Core/Xamarin.Forms.Core.csproj3
2 files changed, 32 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Image.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Image.cs
new file mode 100644
index 00000000..2c86fd04
--- /dev/null
+++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Image.cs
@@ -0,0 +1,30 @@
+namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific
+{
+ using FormsElement = Forms.Image;
+
+ public static class Image
+ {
+ public static readonly BindableProperty BlendColorProperty = BindableProperty.Create("BlendColor", typeof(Color), typeof(FormsElement), Color.Default);
+
+ public static Color GetBlendColor(BindableObject element)
+ {
+ return (Color)element.GetValue(BlendColorProperty);
+ }
+
+ public static void SetBlendColor(BindableObject element, Color color)
+ {
+ element.SetValue(BlendColorProperty, color);
+ }
+
+ public static Color GetBlendColor(this IPlatformElementConfiguration<Tizen, FormsElement> config)
+ {
+ return GetBlendColor(config.Element);
+ }
+
+ public static IPlatformElementConfiguration<Tizen, FormsElement> SetBlendColor(this IPlatformElementConfiguration<Tizen, FormsElement> config, Color color)
+ {
+ SetBlendColor(config.Element, color);
+ return config;
+ }
+ }
+}
diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
index b639558b..f2f63bbe 100644
--- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
+++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -103,6 +103,7 @@
<Compile Include="PlatformConfiguration\iOSSpecific\UIStatusBarAnimation.cs" />
<Compile Include="PlatformConfiguration\iOSSpecific\UpdateMode.cs" />
<Compile Include="PlatformConfiguration\iOSSpecific\VisualElement.cs" />
+ <Compile Include="PlatformConfiguration\TizenSpecific\Image.cs" />
<Compile Include="PlatformConfiguration\TizenSpecific\ProgressBar.cs" />
<Compile Include="PlatformConfiguration\WindowsSpecific\MasterDetailPage.cs" />
<Compile Include="PlatformConfiguration\WindowsSpecific\CollapseStyle.cs" />