[NUI] Fix Jira 2295
authorFang Xiaohui <xiaohui.fang@samsung.com>
Mon, 31 May 2021 11:14:55 +0000 (19:14 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 1 Jun 2021 08:03:31 +0000 (17:03 +0900)
src/Tizen.NUI/src/internal/EXaml/Action/GetValueAction.cs
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs
src/Tizen.NUI/src/public/XamlBinding/Binding.cs

index da6717f3732bc4ca7768620c25a5f9118a9e224c..ee4610565f55c3e55d45f53055d18afa243de4e1 100755 (executable)
@@ -115,16 +115,16 @@ namespace Tizen.NUI.EXaml
                         return Double.Parse(value);
                     };
 
-                    //l Boolean
+                    //l TimeSpan
                     getValueByStrings[12] = (string value) =>
                     {
-                        return Boolean.Parse(value);
+                        return TimeSpan.Parse(value);
                     };
 
-                    //m TimeSpan
+                    //m Boolean
                     getValueByStrings[13] = (string value) =>
                     {
-                        return TimeSpan.Parse(value);
+                        return Boolean.Parse(value);
                     };
 
                     //n decimal
index 813c8cbe8d74a886adc1499c8af54013728c2c9f..db70c01f7d3a2502ee2bf098dfaf06250317472b 100755 (executable)
@@ -522,6 +522,8 @@ namespace Tizen.NUI.Binding
             if (fromStyle && !CanBeSetFromStyle(targetProperty))
                 return;
 
+            IsCreateByXaml = true;
+
             var context = GetOrCreateContext(targetProperty);
             if (fromStyle)
                 context.Attributes |= BindableContextAttributes.IsSetFromStyle;
index e6e91377063f23777cfedca902836711b0335298..e5321878b24b66212dfcb867e33c14d04fa3471f 100755 (executable)
@@ -113,6 +113,11 @@ namespace Tizen.NUI.Binding
             {
                 ThrowIfApplied();
                 source = value;
+
+                if (source is BindableObject bindableObject)
+                {
+                    bindableObject.IsCreateByXaml = true;
+                }
             }
         }