dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.08k stars 1.17k forks source link

Narrator provides wrong count when tabitems collapsed #7450

Closed shcummin closed 1 year ago

shcummin commented 1 year ago
<Window x:Class="TabApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:TabApp1"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <TabControl TabStripPlacement="Left"
                    Height="470"
                    Margin="0,5,0,0"
                    x:Name="MainTabControl"
>
            <TabItem Header="foo">
            </TabItem>
            <TabItem Header="bar">
            </TabItem>
            <TabItem Header="baz" Visibility="Collapsed">
            </TabItem>
        </TabControl>
    </Grid>
</Window>
anjali-wpf commented 1 year ago

@shcummin This is working as expected. Narrator announces whatever is there in the design view. Here we have 3 tab items, irrespective of the 'Visibility' of those items, even if it is 'Collapsed', then also the total count of tab items will be 3, that is not going to affect the total count, that's why it is the correct behavior, as per the design.

shcummin commented 1 year ago

Is this the design of Narrator, WPF, or both? We have a bug from an accessibility team, based on the idea that it is misleading.

anjali-wpf commented 1 year ago

@shcummin It is according to the design of narrator.

ghost commented 1 year ago

This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days.

It will be closed if no further activity occurs within 7 days of this comment.