diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/Label.cs')
-rwxr-xr-x | Xamarin.Forms.Platform.Tizen/Native/Label.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs index b508b21e..3c500737 100755 --- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs @@ -10,7 +10,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native /// The Label class extends <c>ElmSharp.Label</c> to be better suited for Xamarin renderers. /// Mainly the formatted text support. /// </summary> - public class Label : ELabel, ITextable, IMeasurable + public class Label : ELabel, ITextable, IMeasurable, IBatchable { /// <summary> /// The _span holds the content of the label. @@ -379,9 +379,17 @@ namespace Xamarin.Forms.Platform.Tizen.Native return formattedSize; } + void IBatchable.OnBatchCommitted() + { + ApplyTextAndStyle(); + } + void ApplyTextAndStyle() { - SetInternalTextAndStyle(_span.GetDecoratedText(), _span.GetStyle()); + if (!this.IsBatched()) + { + SetInternalTextAndStyle(_span.GetDecoratedText(), _span.GetStyle()); + } } void SetInternalTextAndStyle(string formattedText, string textStyle) |