From 4023ae0865b7a64318b4721260f2ac7e460a93bd Mon Sep 17 00:00:00 2001 From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Wed, 7 Mar 2018 21:12:39 +0900 Subject: [PATCH] [NUI] Fix parent get issue (#141) Signed-off-by: huiyu --- src/Tizen.NUI/src/public/BaseComponents/View.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 45a55d4..48253cb 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -4330,9 +4330,9 @@ namespace Tizen.NUI.BaseComponents HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle); - if (basehandle is Layer) + if (basehandle is Layer layer) { - ret = new View(cPtr, false); + ret = new View(Layer.getCPtr(layer).Handle, false); NUILog.Error("This Parent property is deprecated, shoud do not be used"); } else -- 2.7.4