summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-08-30 14:51:08 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:41 +0900
commit0880875319266e1b579bf29dfdb9d6e2633f1cea (patch)
tree6f2d0c1776c60a12f46a701832e57f8430deb2ba /Xamarin.Forms.Platform.Tizen/Native
parentff7a5d2cd3a0fb301e56a7b42108830815141ef2 (diff)
downloadxamarin-forms-0880875319266e1b579bf29dfdb9d6e2633f1cea.tar.gz
xamarin-forms-0880875319266e1b579bf29dfdb9d6e2633f1cea.tar.bz2
xamarin-forms-0880875319266e1b579bf29dfdb9d6e2633f1cea.zip
Fix Native.EditfieldEntry Handle issue
- Need to set RealHandle with Entry handle TASK=TCAPI-2661,TCAPI-2666 Change-Id: I74743dc842a4719ee6cd2aa2f65909107fcb9b8f
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/EditfieldEntry.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/EditfieldEntry.cs b/Xamarin.Forms.Platform.Tizen/Native/EditfieldEntry.cs
index 0091d253..42aab80e 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/EditfieldEntry.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/EditfieldEntry.cs
@@ -20,7 +20,16 @@ namespace Xamarin.Forms.Platform.Tizen.Native
_editfieldLayout = new ELayout(parent);
_editfieldLayout.SetTheme("layout", "editfield", "singleline");
- Handle = base.CreateHandle(parent);
+ var handle = base.CreateHandle(parent);
+
+ // If true, It means, there is no extra layout on the widget handle
+ // We need to set RealHandle, becuase we replace Handle to Layout
+ if (RealHandle == IntPtr.Zero)
+ {
+ RealHandle = handle;
+ }
+ Handle = handle;
+
_editfieldLayout.SetPartContent("elm.swallow.content", this);
bg.SetPartContent("elm.swallow.content", _editfieldLayout);