[NUI][EXaml] Support AppResourcePath in EXaml
authorFang Xiaohui <xiaohui.fang@samsung.com>
Tue, 6 Jul 2021 05:26:47 +0000 (13:26 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 9 Jul 2021 10:39:50 +0000 (19:39 +0900)
src/Tizen.NUI/src/internal/EXaml/Operation/CreateInstance.cs
src/Tizen.NUI/src/internal/EXaml/Operation/SetBindalbeProperty.cs
src/Tizen.NUI/src/internal/EXaml/Operation/SetProperty.cs

index 3e1b7d9..a2acc61 100755 (executable)
@@ -21,6 +21,7 @@ using System.Text;
 using Tizen.NUI.BaseComponents;
 using Tizen.NUI.Binding;
 using Tizen.NUI.Binding.Internals;
+using Tizen.NUI.Xaml;
 
 namespace Tizen.NUI.EXaml
 {
@@ -69,6 +70,10 @@ namespace Tizen.NUI.EXaml
                             paramList[i] = globalDataList.GatheredInstances[instance.Index];
                         }
 
+                        if (paramList[i] is ApplicationResourcePathExtension applicationResourcePath)
+                        {
+                            paramList[i] = applicationResourcePath.ProvideValue(null);
+                        }
                     }
 
                     if (null == xFactoryMethod)
index 66100e1..51c1718 100755 (executable)
@@ -21,6 +21,7 @@ using System.Text;
 using Tizen.NUI.BaseComponents;
 using Tizen.NUI.Binding;
 using Tizen.NUI.Binding.Internals;
+using Tizen.NUI.Xaml;
 
 namespace Tizen.NUI.EXaml
 {
@@ -50,6 +51,11 @@ namespace Tizen.NUI.EXaml
                     value = globalDataList.GatheredInstances[valueIndex];
                 }
 
+                if (value is ApplicationResourcePathExtension applicationResourcePath)
+                {
+                    value = applicationResourcePath.ProvideValue(null);
+                }
+
                 instance.SetValue(property, value);
             }
         }
index d5fac4b..eefb6fe 100755 (executable)
@@ -21,6 +21,7 @@ using System.Text;
 using Tizen.NUI.BaseComponents;
 using Tizen.NUI.Binding;
 using Tizen.NUI.Binding.Internals;
+using Tizen.NUI.Xaml;
 
 namespace Tizen.NUI.EXaml
 {
@@ -67,6 +68,11 @@ namespace Tizen.NUI.EXaml
                 }
             }
 
+            if (value is ApplicationResourcePathExtension applicationResourcePath)
+            {
+                value = applicationResourcePath.ProvideValue(null);
+            }
+
             property.SetMethod.Invoke(instance, new object[] { value });
         }