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
- 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>
- 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

NuGet package version
WinUI 2 - Microsoft.UI.Xaml 2.8.2
Windows version
No response
Additional context
No response
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
Expected behavior
The screen reader should read out the header content. Instead, it reads "group, collapsed"!
Screenshots
NuGet package version
WinUI 2 - Microsoft.UI.Xaml 2.8.2
Windows version
No response
Additional context
No response