dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.38k stars 971 forks source link

Add a possibility to override AccessibleObject methods like getPropertyValue and others in third-party code #10600

Open beqabeqa473 opened 9 months ago

beqabeqa473 commented 9 months ago

.NET version

8.0

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No response

Issue description

Hello.

We need to override getPropertyValue of a form at this moment to implement UIA_is_dialog_property_id in the form without showing it as a dialog, because an app, by design shouldn't be blocked, but we also need screenreader to read a label on focus as it is done when form is beeing showed as a dialog.

Is there any other possiibility to do that at this moment?

Please consider making AccessibleObject methods public to make it possible for third-party developers to have more customizations in their apps.

Steps to reproduce

Try to focus a form with label, progress bar and a cancel button with a screenreader In our case label with information should be read

merriemcgaw commented 8 months ago

@lonitra @JeremyKuhne and @Tanya-Solyanik should have a discussion around opening up AccessibilityObject in custom controls etc.

@Tanya-Solyanik - can you link any related issues?

Tanya-Solyanik commented 8 months ago

Related to https://github.com/dotnet/winforms/issues/1834

beqabeqa473 commented 8 months ago

This issue is open more than 4 Years ago, and unfortunately nothing was done to improve situation.