[NUI] Improve usability of AutomationId
authorHosang Kim <hosang12.kim@samsung.com>
Tue, 25 May 2021 10:09:34 +0000 (19:09 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 26 May 2021 01:00:09 +0000 (10:00 +0900)
here is AutomationId property but it wasn't available for accessbility.
For now, it is available so user can use it for testing.

src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityProperties.cs

index 5f093b8..12f6468 100755 (executable)
@@ -107,5 +107,19 @@ namespace Tizen.NUI.BaseComponents
                 NotifyPropertyChanged();
             }
         }
+
+        /// <summary>
+        /// Gets or sets a value that allows the automation framework to find and interact with this element.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public new string AutomationId
+        {
+            get { return base.AutomationId; }
+            set
+            {
+                base.AutomationId = value;
+                AppendAccessibilityAttribute("automationId", value);
+            }
+        }
     }
 }