diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-01-24 14:09:11 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-03-24 13:19:01 +0900 |
commit | 013d0e93b1ad88e00ec3a44c2a33b3f051899bad (patch) | |
tree | 3ca6ce3d73eaee3a59d8b0940ea82d867cabd8ba /Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/Entry.cs | |
parent | 47013a728f46f9af08cd8a9bda587d5182fd6d6d (diff) | |
download | xamarin-forms-013d0e93b1ad88e00ec3a44c2a33b3f051899bad.tar.gz xamarin-forms-013d0e93b1ad88e00ec3a44c2a33b3f051899bad.tar.bz2 xamarin-forms-013d0e93b1ad88e00ec3a44c2a33b3f051899bad.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; + } + } +} |