set accessibility name
authorYurii Zinchuk/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <y.zinchuk@samsung.com>
Tue, 30 May 2023 13:40:54 +0000 (15:40 +0200)
committerPiotr Czaja/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <p.czaja@samsung.com>
Wed, 31 May 2023 04:22:26 +0000 (06:22 +0200)
SettingCore/Views/BackButton.cs

index 140aebbc625425031c262e3329fbf2c5ebf786a1..a477883fd6e4033039979306a7899d81071a3454 100644 (file)
@@ -1,4 +1,5 @@
-using Tizen.NUI;
+using SettingCore.TextResources;
+using Tizen.NUI;
 using Tizen.NUI.BaseComponents;
 
 namespace SettingCore.Views
@@ -13,6 +14,7 @@ namespace SettingCore.Views
 
         public BackButton() : base()
         {
+            AccessibilityRole = Role.PushButton;
             BackgroundColor = BackgroundColors.Normal;
             CornerRadius = 8f.SpToPx();
             Size = new Size(40, 40).SpToPx();
@@ -51,5 +53,10 @@ namespace SettingCore.Views
                 BackgroundColor = BackgroundColors.Normal;
             }
         }
+
+        protected override string AccessibilityGetName()
+        {
+            return Resources.IDS_ST_BUTTON_BACK.ToString();
+        }
     }
 }