blob: d95daa83d3595211d0246841f11f2c22d8a8c4de (
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.Label;
public static class Label
{
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;
}
}
}
|