blob: 7eb4c718c9b6541195bc4a29686bc89226f0614f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}
}
}
|