From 80c2bfcbd5c7f1fcb7cd2929adca38bd67a76687 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 25 Jul 2017 10:36:35 +0900 Subject: [PATCH] Revert "[Tizen] fix TCT BLOCK issue" This reverts commit 6a377ce014c683b0bc36286ccda0a456deb8e827. Change-Id: I7b5b7c952adbdf680aa9b01daf986f8f279e0d50 --- src/Tizen.NUI/src/public/BaseComponents/View.cs | 4 ++-- src/Tizen.NUI/src/public/CustomView/Spin.cs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index eaea3e1..61ac23b 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -827,7 +827,6 @@ namespace Tizen.NUI.BaseComponents /// /// Handle to an object /// A handle to a View or an uninitialized handle - [Obsolete("Please do not use! this will be deprecated")] public new static View DownCast(BaseHandle handle) { View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true); @@ -838,7 +837,8 @@ namespace Tizen.NUI.BaseComponents [Obsolete("Please do not use! this will be deprecated")] public static T DownCast(View view) where T : View { - View ret = Registry.GetManagedBaseHandleFromNativePtr(view) as View; + //View ret = ViewRegistry.GetViewFromBaseHandle(view); + View ret = View.DownCast(view); if (ret != null) { return (T)ret; diff --git a/src/Tizen.NUI/src/public/CustomView/Spin.cs b/src/Tizen.NUI/src/public/CustomView/Spin.cs index 608b1e7..2f0664d 100755 --- a/src/Tizen.NUI/src/public/CustomView/Spin.cs +++ b/src/Tizen.NUI/src/public/CustomView/Spin.cs @@ -76,8 +76,7 @@ namespace Tizen.NUI public override void OnInitialize() { // Initialize the propertiesControl - //_arrowImage = "/home/tengxb/Workspace/nui-debug/examples/res/images/arrow.png"; - _arrowImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png"; + _arrowImage = "/home/tengxb/Workspace/nui-debug/examples/res/images/arrow.png"; _textBackgroundColor = new Color(0.6f, 0.6f, 0.6f, 1.0f); _currentValue = 0; _minValue = 0; -- 2.7.4