[Accessibility] Focus cue not shown on startup for multiple WinForms controls when multiple focusable controls exist
tenet-accessibilityuntriaged
### .NET version
.NET 11 SDK with 11.0.100-preview.4.26208.110 build
### Did it work in .NET Framework?
No
### Did it work in any of the earlier releases of .NET Core or .NET 5+?
No
### Issue description
In WinForms, several controls that receive input focus on startup do not display any visible focus indication when multiple focusable controls are present on the form.
This results in inconsistent and potentially confusing UX, as users cannot determine which control is currently focused.
**Actual Result:**
Only ComboBox (DropDownStyle = DropDownList): it has focus cue.
<img width="488" height="250" alt="Image" src="https://github.com/user-attachments/assets/8cc414ce-9248-4148-8db7-a157aa7ada28" />
After added button:
The control(ComboBox) does not show any visible focus cue on startup
However:
- Pressing `Tab `once moves focus to the Button
- This indicates that the control **actually had focus initially**
<img width="486" height="250" alt="Image" src="https://github.com/user-attachments/assets/0b1ac8e3-8d28-4535-8949-fc5da3aba9b0" />
**Expected result:**
A control that has input focus should provide a visible focus indication on startup, regardless of the presence of other focusable controls.
<img width="502" height="266" alt="Image" src="https://github.com/user-attachments/assets/efc26344-b739-42e3-8c9b-1171d885c39f" />
### Steps to reproduce
1. Create a new WinForms .NET application
2. Add one of the following controls to the form:
- ComboBox (DropDownStyle = DropDownList)
- ListBox
- CheckedListBox
- ListView
- TreeView
- TabControl
- TrackBar
**Ensure:**
- TabIndex = 0
3. Run the application
→ The control shows a focus cue
4. Add a Button to the form (default settings)
5. Run the application again to observe
0 条评论