blob: c84dcc36f0f539abd6c0563e63915b347eb4567d (
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
30
|
namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific
{
using FormsElement = Forms.Entry;
public static class Entry
{
public static readonly BindableProperty FontWeightProperty = BindableProperty.Create("FontWeight", typeof(FontWeight), typeof(FormsElement), FontWeight.None);
public static FontWeight GetFontWeight(BindableObject element)
{
return (FontWeight)element.GetValue(FontWeightProperty);
}
public static void SetFontWeight(BindableObject element, FontWeight weight)
{
element.SetValue(FontWeightProperty, weight);
}
public static FontWeight GetFontWeight(this IPlatformElementConfiguration<Tizen, FormsElement> config)
{
return GetFontWeight(config.Element);
}
public static IPlatformElementConfiguration<Tizen, FormsElement> SetFontWeight(this IPlatformElementConfiguration<Tizen, FormsElement> config, FontWeight weight)
{
SetFontWeight(config.Element, weight);
return config;
}
}
}
|