summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers
diff options
context:
space:
mode:
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>2017-06-12 10:31:00 +0200
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:28 +0900
commit284e3e2404f18ee486160fcde9d370e02047b28a (patch)
treec3cf769111e5054b164f3cc74b4b3258b1698ec2 /Xamarin.Forms.Platform.Tizen/Renderers
parent0797bfc37545d5f43741fe63027d72b410d52852 (diff)
downloadxamarin-forms-284e3e2404f18ee486160fcde9d370e02047b28a.tar.gz
xamarin-forms-284e3e2404f18ee486160fcde9d370e02047b28a.tar.bz2
xamarin-forms-284e3e2404f18ee486160fcde9d370e02047b28a.zip
Initialize Button with single batch update
Change-Id: Id34604e0d228b9d94395f432471ff272eb7e251f Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
index 97b07bb7..483fcebc 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
@@ -1,4 +1,5 @@
using System;
+using Xamarin.Forms.Platform.Tizen.Native;
using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.VisualElement;
namespace Xamarin.Forms.Platform.Tizen
@@ -37,6 +38,8 @@ namespace Xamarin.Forms.Platform.Tizen
if (e.NewElement != null)
{
Control.Clicked += ButtonClickedHandler;
+
+ Control.BatchBegin();
}
base.OnElementChanged(e);
}
@@ -46,6 +49,11 @@ namespace Xamarin.Forms.Platform.Tizen
return Control.Measure(Control.MinimumWidth, Control.MinimumHeight).ToDP();
}
+ protected override void OnElementReady()
+ {
+ Control?.BatchCommit();
+ }
+
void ButtonClickedHandler(object sender, EventArgs e)
{
IButtonController btn = Element as IButtonController;