CommunityToolkit / CommunityToolkit/Maui
[BUG] IsEnabled property on DrawingView not disabling input (Revival of #1325)
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
On a DrawingView with the IsEnabled property set to False, users can still interact with it and draw lines
### Expected Behavior
On a DrawingView with the IsEnabled property set to False, users cannot interact with it and it exists in a read-only state until IsEnabled is set to True
### Steps To Reproduce
1. Open and run Reproduction Project
2. Attempt to draw in top DrawingView - line will be made successfully, this is expected
3. Attempt to draw in bottom DrawingView - line will be made, this is not expected - the IsEnabled property set against the control should stop this from happening
https://github.com/user-attachments/assets/c9619f0c-735c-4155-a4af-be2c199aef48
Repro on Seuic Cruise 1 running Android 9
https://github.com/user-attachments/assets/1a712284-06aa-48ed-bb58-77d52682f1fb
Repro on Samsung A15 running Android 14
### Link to public reproduction project repository
https://github.com/CmdrFigrow/MauiCT_BUG1325_DrawingViewIsEnabled_Repro
### Environment
- .NET MAUI CommunityToolkit: 9.1.0
- OS: Windows 11 22631.4317 / Seuic Cruise 1 running Android 9 / Samsung A15 running Android 14
- .NET MAUI: 8.0.82
### Anything else?
Revival of BUG #1325
Contributor guide
Assessment
This issue has not been assessed yet.