diff options
Diffstat (limited to 'Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs')
-rw-r--r-- | Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs new file mode 100644 index 00000000..7eb4c718 --- /dev/null +++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs @@ -0,0 +1,29 @@ +namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific +{ + using FormsElement = Forms.VisualElement; + public static class VisualElement + { + public static readonly BindableProperty StyleProperty = BindableProperty.Create("ThemeStyle", typeof(string), typeof(VisualElement), default(string)); + + public static string GetStyle(BindableObject element) + { + return (string)element.GetValue(StyleProperty); + } + + public static void SetStyle(BindableObject element, string value) + { + element.SetValue(StyleProperty, value); + } + + public static string GetStyle(this IPlatformElementConfiguration<Tizen, FormsElement> config) + { + return GetStyle(config.Element); + } + + public static IPlatformElementConfiguration<Tizen, FormsElement> SetStyle(this IPlatformElementConfiguration<Tizen, FormsElement> config, string value) + { + SetStyle(config.Element, value); + return config; + } + } +} |