summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs27
1 files changed, 1 insertions, 26 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
index a1c07134..3f26f4ea 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
@@ -65,9 +65,6 @@ namespace Xamarin.Forms.Platform.Tizen
nativeSpan.FontAttributes = span.FontAttributes;
nativeSpan.FontFamily = span.FontFamily;
nativeSpan.FontSize = span.FontSize;
- nativeSpan.LineBreakMode = Control.LineBreakMode;
- nativeSpan.HorizontalTextAlignment = Control.HorizontalTextAlignment;
- nativeSpan.VerticalTextAlignment = Control.VerticalTextAlignment;
nativeSpan.ForegroundColor = span.ForegroundColor.ToNative();
nativeSpan.BackgroundColor = span.BackgroundColor.ToNative();
nativeString.Spans.Add(nativeSpan);
@@ -89,15 +86,6 @@ namespace Xamarin.Forms.Platform.Tizen
void UpdateTextAlignment()
{
- if (Control.FormattedText != null)
- {
- foreach (var span in Control.FormattedText.Spans)
- {
- span.HorizontalTextAlignment = Element.HorizontalTextAlignment.ToNative();
- span.VerticalTextAlignment = Element.VerticalTextAlignment.ToNative();
- }
- }
-
Control.HorizontalTextAlignment = Element.HorizontalTextAlignment.ToNative();
Control.VerticalTextAlignment = Element.VerticalTextAlignment.ToNative();
}
@@ -111,26 +99,13 @@ namespace Xamarin.Forms.Platform.Tizen
void UpdateLineBreakMode()
{
- if (Control.FormattedText != null)
- {
- foreach (var span in Control.FormattedText.Spans)
- {
- span.LineBreakMode = ConvertToNativeLineBreakMode(Element.LineBreakMode);
- }
- }
Control.LineBreakMode = ConvertToNativeLineBreakMode(Element.LineBreakMode);
}
void UpdateFontWeight()
{
var weight = Specific.GetFontWeight(Element);
- if (Control.FormattedText != null)
- {
- foreach (var span in Control.FormattedText.Spans)
- {
- span.FontWeight = ConvertToNativeFontWeight(weight);
- }
- }
+
Control.FontWeight = ConvertToNativeFontWeight(weight);
}