From a224059721bcf6c494a863a654f2cd878b58f66a Mon Sep 17 00:00:00 2001 From: a-bartak <81564077+a-bartak@users.noreply.github.com> Date: Mon, 19 Apr 2021 09:36:51 +0200 Subject: [PATCH] [NUI][ATSPI] Accessibility added to Loading component (#2823) - Highlightable added to Loading --- src/Tizen.NUI.Components/Controls/Loading.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Tizen.NUI.Components/Controls/Loading.cs b/src/Tizen.NUI.Components/Controls/Loading.cs index e017715..f982359 100755 --- a/src/Tizen.NUI.Components/Controls/Loading.cs +++ b/src/Tizen.NUI.Components/Controls/Loading.cs @@ -96,6 +96,7 @@ namespace Tizen.NUI.Components /// 6 public Loading() : base() { + Initialize(); } /// @@ -105,6 +106,7 @@ namespace Tizen.NUI.Components /// 8 public Loading(string style) : base(style) { + Initialize(); } /// @@ -114,6 +116,7 @@ namespace Tizen.NUI.Components /// 8 public Loading(LoadingStyle loadingStyle) : base(loadingStyle) { + Initialize(); } /// @@ -184,6 +187,7 @@ namespace Tizen.NUI.Components public override void OnInitialize() { base.OnInitialize(); + SetAccessibilityConstructor(Role.ProgressBar); imageVisual = new AnimatedImageVisual() { @@ -293,5 +297,10 @@ namespace Tizen.NUI.Components this.DoAction(imageVisual.VisualIndex, Property.ActionStop, attributes); attributes.Dispose(); } + + private void Initialize() + { + AccessibilityHighlightable = true; + } } } -- 2.7.4