dotnet / wpf

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

[Accessibility Issue]: Narrator tool in Windows 11 is not able to read content there in RichTextBox control of WPF application. #6771

Closed vedeevi closed 2 years ago

vedeevi commented 2 years ago

Sample code for RichTextBox control used in our WPF application: `<RichTextBox x:Name="AppContentRichTextBox" BorderThickness="0" x:FieldModifier="public" IsDocumentEnabled="True" IsReadOnly="True" FontSize="16" Foreground="Black" FontFamily="Segoe UI" KeyboardNavigation.TabNavigation="Continue" Focusable="True" Margin="-5,0,0,30" AutomationProperties.Name="App content details" Visibility="Visible" HorizontalContentAlignment="Stretch" VerticalAlignment="Center">

This is the paragraph text of the application which need to be read by Narrator tool available in Windows 10 or 11 operating system.

`

Actual behavior: No exceptions. Narrator tool in Windows 11 is not able to read content there in RichTextBox control of WPF application.

Expected behavior: Narrator tool in Windows 11 has to read content there in RichTextBox control of WPF application.

Minimal repro:

vedeevi commented 2 years ago

Hi Team,

It's been 15 days since this issue has been posted, but still didn't seen update... please let us know when we can expect the reply for this issue.

Thanks, Vedeevi.

pchaurasia14 commented 2 years ago

Hi @vedeevi, the issue is under investigation. We'll let you know once we have more information on this.

singhashish-wpf commented 2 years ago

@vedeevi It seems that the richtext box content is being read only when you enable the scan mode (Caps + Space) and then focus to the richtextbox, After than down arrow key. and the narrator would start reading the contents of the richtext box.

anjali-wpf commented 2 years ago

@vedeevi

Ashish has given you solution to read the text, check the link below for similar git issue :

https://github.com/dotnet/wpf/issues/5035