dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.71k forks source link

maui accessibility FlyOutItem not speaking by screenreader #20319

Open vsfeedback opened 7 months ago

vsfeedback commented 7 months ago

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] When I add fly out item in maui app so it's run and show but it not speak by screen reader called NVDA. I try to set semantic property description but know use even when i set <FlyOutItem Title="moonPage" SemanticProperty.Description ... so it build but wont run i try to set Semantic properties with <ShellContent .... that time it run but no Success. every time when I enter in navigation bar so NVDA reads FlyOutItem like: -

Microsoft.Maui.Controls.Platform.ShellFlyoutItemView 1 of 3 level 1 Microsoft.Maui.Controls.Platform.ShellFlyoutItemView not selected 2 of 3 level 1 Microsoft.Maui.Controls.Platform.ShellFlyoutItemView not selected 3 of 3 level 1 I am sending all code here.

<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="Astronomy.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:Astronomy.Pages" FlyoutIcon="moon.png">

<FlyoutItem Title="MoonPhase">
    <ShellContent
        ContentTemplate="{DataTemplate local:MoonPhasePage}"/>
    </FlyoutItem>
    <FlyoutItem Title="SunrisePage">
        <ShellContent ContentTemplate="{DataTemplate local:SunrisePage}"/>

</FlyoutItem>
    <FlyoutItem Title="About" >
        <ShellContent ContentTemplate="{DataTemplate local:AboutPage}"/>
    </FlyoutItem>

</Shell>

Original Comments

Feedback Bot on 10/29/2023, 06:50 PM:

(private comment, text removed)


Original Solutions

(no solutions)

ghost commented 7 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

ngegner commented 6 months ago

This is definitely a bug. Setting the SemanticProperties of ShellContent in XAML does nothing (still builds/deploys, but doesn't change the semantics of the element), so I tried to set them in the code behind as a workaround, and get a bug saying that ShellContent doesn't have the property SemanticProperties. This also applies to MenuItem. How am I supposed to make my shell accessible?