summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Label.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Label.cs')
-rw-r--r--Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Label.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Label.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Label.cs
new file mode 100644
index 00000000..d95daa83
--- /dev/null
+++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Label.cs
@@ -0,0 +1,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;
+ }
+ }
+}