diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-01-24 14:09:11 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-04-24 13:36:52 +0900 |
commit | b4d15c3fa75dd0bdf2600f80c7623adf06ba84e0 (patch) | |
tree | 7fb6e1e6c53122dfd5953d3dad0646e713ffdca7 /Xamarin.Forms.Platform.Tizen/Native/Label.cs | |
parent | bb9c8517a890e4a9d1a96e1f99bc9123dcc8a0a6 (diff) | |
download | xamarin-forms-b4d15c3fa75dd0bdf2600f80c7623adf06ba84e0.tar.gz xamarin-forms-b4d15c3fa75dd0bdf2600f80c7623adf06ba84e0.tar.bz2 xamarin-forms-b4d15c3fa75dd0bdf2600f80c7623adf06ba84e0.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.Platform.Tizen/Native/Label.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/Label.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs index 9d52cde2..231127c2 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs @@ -175,6 +175,27 @@ namespace Xamarin.Forms.Platform.Tizen.Native } /// <summary> + /// Gets or sets the font weight for the text. + /// </summary> + /// <value>The weight of the font.</value> + public FontWeight FontWeight + { + get + { + return _span.FontWeight; + } + + set + { + if (value != _span.FontWeight) + { + _span.FontWeight = value; + ApplyTextAndStyle(); + } + } + } + + /// <summary> /// Gets or sets the line wrap option. /// </summary> /// <value>The line break mode.</value> |