- 
                Notifications
    You must be signed in to change notification settings 
- Fork 773
Closed as not planned
Closed as not planned
Copy link
Labels
area-Accessibilityneeds-winui-3Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)no-issue-activityteam-ControlsIssue for the Controls teamIssue for the Controls team
Description
Describe the bug
When creating a custom control that is derived from RangeBase, providing an AutomationPeer (by overriding OnCreateAutomationPeer) can crash the application when the value property changes while narrator is on.
See following demo project:
Switching the base class of the peer to RangeBaseAutomationPeer fixes the crash, however not using that peer shouldn't flat out crash the app in my opinion.
Steps to reproduce the bug
Steps to reproduce the behavior:
- Create Control derived from RangeBase
- Provide custom automation peer
- Start narrator
- Change value property of custom control
Repro steps app:
- Start Narrator
- Start app and focus CustomControl1
- Hit arrow key right
- Observe app crashing
Expected behavior
App should not crash
Screenshots
Version Info
NuGet package version:
WinUI 2.4.3
Windows app type:
| UWP | Win32 | 
|---|---|
| Windows 10 version | Saw the problem? | 
|---|---|
| Insider Build (20236) | Yes | 
| May 2020 Update (19041) | |
| November 2019 Update (18363) | |
| May 2019 Update (18362) | |
| October 2018 Update (17763) | |
| April 2018 Update (17134) | |
| Fall Creators Update (16299) | |
| Creators Update (15063) | 
| Device form factor | Saw the problem? | 
|---|---|
| Desktop | Yes | 
| Xbox | |
| Surface Hub | |
| IoT | 
Additional context
Found while investigating a crash with WCT RadialGauge control.
Metadata
Metadata
Assignees
Labels
area-Accessibilityneeds-winui-3Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)no-issue-activityteam-ControlsIssue for the Controls teamIssue for the Controls team