[NUI][AT-SPI] Override ContentPage.AccessibilityGetName() (#5146)
authorArtur Świgoń <aswigon@yandex.com>
Mon, 3 Apr 2023 10:19:56 +0000 (12:19 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2023 10:19:56 +0000 (19:19 +0900)
commitc56d97f3976bf294bf9f23324b1201bc200815e6
tree406c75ce0b604420aa8d9ceef9a9a2715a238fc5
parentae34d522d9380b9685b9adba69d8338364cf2a35
[NUI][AT-SPI] Override ContentPage.AccessibilityGetName() (#5146)

ContentPage often serves as a default label in scenarios where Navigator is
used, so Screen Reader will ask ContentPage about the accessibility name (text
to read) when a Navigator page is pushed. Therefore, it makes sense to try to
provide the text from ContentPage.AppBar.Title (if it exists). The application
developer can always customize this by setting the AccessibilityName property
or adding an AccessibilityRelation.LabelledBy.

Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs