Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET MAUI CollectionView Item is not read by screen readers #2753

Open
vsfeedback opened this issue Oct 11, 2024 · 3 comments
Open

.NET MAUI CollectionView Item is not read by screen readers #2753

vsfeedback opened this issue Oct 11, 2024 · 3 comments
Assignees
Labels

Comments

@vsfeedback
Copy link

vsfeedback commented Oct 11, 2024

Description

Document this
#2753 (comment)

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


[severity:It bothers me. A fix would be nice]
In MAUI technology on WINDOWS when I create a CollectionView like this

    <CollectionView 
        x:Name="cv"
        ItemsSource="{ Binding categories, Mode=TwoWay}" 
        SelectedItem="{Binding selectedItem}" 
        SelectionMode="Single"
        >
        <CollectionView.ItemTemplate>
            <DataTemplate>
                <Grid
                    RowDefinitions="auto,auto"
                    ColumnDefinitions="*"
                    Padding="0,2"
                    Margin="0,2"
                    >
                    <Label
                        Grid.Row="0"
                        Grid.Column="0"
                        Text="{Binding Title}"
                        LineBreakMode="TailTruncation"
MaxLines="1"
                        FontSize="16"
                        Padding="0"
                        Margin="0"
                        />
                    <Label
                    Grid.Row="1"
                    Grid.Column="0"
                    Text="{Binding Description}"
                    LineBreakMode="TailTruncation"

MaxLines="1"
Padding="0"
Margin="0"
/>


</CollectionView.ItemTemplate>

And I am running the application on windows
When I move between items on the list, the screen reader read this phrase
Microsoft.Maui.Controls.Platform.ItemTemplateContext not selected 2 of 4
Although it is expected to read the content of this item, I do not know where the problem is or whether I did something wrong, but what I understand is that the .net maui technology on the Windows system requires Microsoft to take care of the accessibility of the items or the availability of the wonderful DataGridView instance found in Windows Forms


Original Comments

Feedback Bot on 9/19/2024, 06:52 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@TiberiusDRAIG
Copy link

@rachelkang The issue with CollectionView not working with screenreaders that I mentioned here: dotnet/maui#20319 (comment). Both are complete showstoppers from a compliance perspective.

@TiberiusDRAIG
Copy link

Probably the same as dotnet/maui#6803

@Foda
Copy link
Member

Foda commented Dec 3, 2024

Hello! You can fix this by adding SemanticProperties.Description on the Grid element in the DataTemplate:

<DataTemplate>
  <Grid RowDefinitions="auto,auto"
        ColumnDefinitions="*"
        Padding="0,2"
        Margin="0,2"
        SemanticProperties.Description="{Binding Title}">
    <Label Grid.Row="0"
            Grid.Column="0"
            Text="{Binding Title}"
            LineBreakMode="TailTruncation"
            MaxLines="1"
            FontSize="16"
            Padding="0"
            Margin="0" />
  </Grid>
</DataTemplate>

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Jan 28, 2025
@PureWeen PureWeen transferred this issue from dotnet/maui Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants