diff options
author | Pawel Andruszkiewicz <p.andruszkie@samsung.com> | 2017-06-12 10:35:25 +0200 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:37 +0900 |
commit | 3ea1834e6f6771dacead4d86bad3c8d64bd5f8a2 (patch) | |
tree | 81187906ba88e6ed80522f6a3db9485f9845e030 /Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs | |
parent | 66a992c24e304293ea59a465c04e25d78593f47d (diff) | |
download | xamarin-forms-3ea1834e6f6771dacead4d86bad3c8d64bd5f8a2.tar.gz xamarin-forms-3ea1834e6f6771dacead4d86bad3c8d64bd5f8a2.tar.bz2 xamarin-forms-3ea1834e6f6771dacead4d86bad3c8d64bd5f8a2.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/Renderers/EntryRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs index 3274ec3e..e54e7399 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs @@ -1,4 +1,5 @@ using System; +using Xamarin.Forms.Platform.Tizen.Native; using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.Entry; namespace Xamarin.Forms.Platform.Tizen @@ -47,6 +48,8 @@ namespace Xamarin.Forms.Platform.Tizen { Control.TextChanged += EntryChangedHandler; Control.Activated += EntryCompletedHandler; + + Control.BatchBegin(); } base.OnElementChanged(e); @@ -63,6 +66,11 @@ namespace Xamarin.Forms.Platform.Tizen base.Dispose(disposing); } + protected override void OnElementReady() + { + Control?.BatchCommit(); + } + void EntryChangedHandler(object sender, EventArgs e) { Element.Text = Control.Text; |