From 9dd673e3eae6bf6beef737e166443d9c6cb41083 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Mon, 12 Jun 2017 10:54:38 +0200 Subject: Initialize SearchBar with a single batch update Change-Id: I88749ed075b320ad22bf7cb3d9e869d1f6c6dad6 Signed-off-by: Pawel Andruszkiewicz --- Xamarin.Forms.Platform.Tizen/Renderers/SearchBarRenderer.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/SearchBarRenderer.cs') diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/SearchBarRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/SearchBarRenderer.cs index 3c9734db..30a2546c 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/SearchBarRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/SearchBarRenderer.cs @@ -51,6 +51,8 @@ namespace Xamarin.Forms.Platform.Tizen { Control.TextChanged += SearchBarTextChangedHandler; Control.SearchButtonPressed += SearchButtonPressedHandler; + + Control.BatchBegin(); } base.OnElementChanged(e); @@ -61,6 +63,11 @@ namespace Xamarin.Forms.Platform.Tizen return new Size(136, 65); } + protected override void OnElementReady() + { + Control?.BatchCommit(); + } + /// /// Called upon changing of Xamarin widget's cancel button color property. /// Converts current Color to ElmSharp.Color instance and sets it in the underlying Xamarin.Forms.Platform.Tizen.Native widget. -- cgit v1.2.3