From: dongsug.song Date: Fri, 21 Jul 2017 08:06:06 +0000 (+0900) Subject: [Tizen] fix TCT BLOCK issue X-Git-Tag: preview1-00180^2~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fda8e2c5b78a6923e2c424d35a9c8c2c5842d5ae;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen] fix TCT BLOCK issue Change-Id: I73f3517bfb7fc99f8860a1938cde6a8b8e270b22 Signed-off-by: dongsug.song --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 61ac23b..eaea3e1 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -827,6 +827,7 @@ 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); @@ -837,8 +838,7 @@ namespace Tizen.NUI.BaseComponents [Obsolete("Please do not use! this will be deprecated")] public static T DownCast(View view) where T : View { - //View ret = ViewRegistry.GetViewFromBaseHandle(view); - View ret = View.DownCast(view); + View ret = Registry.GetManagedBaseHandleFromNativePtr(view) as 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 2f0664d..608b1e7 100755 --- a/src/Tizen.NUI/src/public/CustomView/Spin.cs +++ b/src/Tizen.NUI/src/public/CustomView/Spin.cs @@ -76,7 +76,8 @@ namespace Tizen.NUI public override void OnInitialize() { // Initialize the propertiesControl - _arrowImage = "/home/tengxb/Workspace/nui-debug/examples/res/images/arrow.png"; + //_arrowImage = "/home/tengxb/Workspace/nui-debug/examples/res/images/arrow.png"; + _arrowImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png"; _textBackgroundColor = new Color(0.6f, 0.6f, 0.6f, 1.0f); _currentValue = 0; _minValue = 0;