[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 da6717f..ee46105 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 813c8cb..db70c01 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 e6e9137..e532187 100755 (executable)
@@ -113,6 +113,11 @@ namespace Tizen.NUI.Binding
             {
                 ThrowIfApplied();
                 source = value;
+
+                if (source is BindableObject bindableObject)
+                {
+                    bindableObject.IsCreateByXaml = true;
+                }
             }
         }