Skip to content

Expander Header not read by screen reader if it's complex #10282

@carlos-zamora

Description

@carlos-zamora

Describe the bug

A screen reader is unable to read the header of an expander if the header was set to anything other than a TextBlock.

Steps to reproduce the bug

  1. Create an Expander where the header is overridden as such:
<muxc:Expander>
    <muxc:Expander.Header>
        <StackPanel>
            <TextBlock>First text block!</TextBlock>
            <TextBlock>Additional text!</TextBlock>
        </StackPanel>
    </muxc:Expander.Header>
</muxc:Expander>
  1. Use a screen reader to navigate to the expander

Expected behavior

The screen reader should read out the header content. Instead, it reads "group, collapsed"!

Screenshots

Image

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions