diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-01-24 14:09:11 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-02-03 13:28:06 +0900 |
commit | 7ba95644132d7e5d8311300b8f1ea56e74a1ea69 (patch) | |
tree | 82cbcdfde7106b216c6628b940df795f35e0d536 /Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs | |
parent | 3bd9baf1348c00caab933087554f84fbe9ba3289 (diff) | |
download | xamarin-forms-7ba95644132d7e5d8311300b8f1ea56e74a1ea69.tar.gz xamarin-forms-7ba95644132d7e5d8311300b8f1ea56e74a1ea69.tar.bz2 xamarin-forms-7ba95644132d7e5d8311300b8f1ea56e74a1ea69.zip |
Add FontWeight for Label and Entry
- This change is for the referernce application (Clock) to follow UX guideline. (Internal only).
- We will improve design and implementation of this APIs in the next release, if requred.
Change-Id: Ifac91174a5859adecc9ec6bff1a1d568512ee70b
Diffstat (limited to 'Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs')
-rw-r--r-- | Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs new file mode 100644 index 00000000..c84dcc36 --- /dev/null +++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs @@ -0,0 +1,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; + } + } +} |