diff options
author | Pawel Andruszkiewicz <p.andruszkie@samsung.com> | 2017-06-12 10:35:25 +0200 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 11:11:28 +0900 |
commit | 3d499e232ec240e87ca5e8a1a5cf6ab2f87ea4ea (patch) | |
tree | 50532b655d43b03a6eabf79538d02e1bfd5faf6a /Xamarin.Forms.Platform.Tizen/Native | |
parent | 284e3e2404f18ee486160fcde9d370e02047b28a (diff) | |
download | xamarin-forms-3d499e232ec240e87ca5e8a1a5cf6ab2f87ea4ea.tar.gz xamarin-forms-3d499e232ec240e87ca5e8a1a5cf6ab2f87ea4ea.tar.bz2 xamarin-forms-3d499e232ec240e87ca5e8a1a5cf6ab2f87ea4ea.zip |
Initialize Entry/Editor with a single batch update
Change-Id: Ibc7f697dfb51992040c8dbe476065ea884e33a49
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/Entry.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Entry.cs b/Xamarin.Forms.Platform.Tizen/Native/Entry.cs index d6f3f454..8276aaa2 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/Entry.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Entry.cs @@ -10,7 +10,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native /// Extends the Entry control, providing basic formatting features, /// i.e. font color, size, placeholder. /// </summary> - public class Entry : EEntry, IMeasurable + public class Entry : EEntry, IMeasurable, IBatchable { /// <summary> /// Holds the formatted text of the entry. @@ -342,12 +342,20 @@ namespace Xamarin.Forms.Platform.Tizen.Native } } + void IBatchable.OnBatchCommitted() + { + ApplyTextAndStyle(); + } + /// <summary> /// Applies entry's text and its style. /// </summary> void ApplyTextAndStyle() { - SetInternalTextAndStyle(_span.GetDecoratedText(), _span.GetStyle()); + if (!this.IsBatched()) + { + SetInternalTextAndStyle(_span.GetDecoratedText(), _span.GetStyle()); + } } /// <summary> |