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:
RangeBaseCrash.zip
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:
| 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.
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:
RangeBaseCrash.zip
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:
Repro steps app:
Expected behavior
App should not crash
Screenshots
Version Info
NuGet package version:
WinUI 2.4.3
Windows app type:
Additional context
Found while investigating a crash with WCT RadialGauge control.