diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-01-06 15:43:46 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-04-24 13:36:46 +0900 |
commit | 2dc88485fdd9c10043380c0f9a63ae7f67e0e094 (patch) | |
tree | 896e76ef4f8436e14e1a18fd9327e422c834b1f9 /Xamarin.Forms.Core | |
parent | 9a0cf94c9ca76725af7aba3e7cd1adf4e08c6ace (diff) | |
download | xamarin-forms-2dc88485fdd9c10043380c0f9a63ae7f67e0e094.tar.gz xamarin-forms-2dc88485fdd9c10043380c0f9a63ae7f67e0e094.tar.bz2 xamarin-forms-2dc88485fdd9c10043380c0f9a63ae7f67e0e094.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.cs | 30 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 3 |
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 77da2c94..07dd8f20 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> @@ -110,6 +110,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" /> |