Xamarin.Forms
Xamarin.Forms copied to clipboard
[Bug] CollectionView IsEnabled property not working as intended
Description
when CollectionView.IsEnabled is set to False the selection and scrolling remain enabled
Steps to Reproduce
- Create new collection view
- set CollectionView.IsEnabled to False
Expected Behavior
scrolling and selection are disabled
Actual Behavior
scrolling and selection are enabled
Basic Information
- Version with issue: all version
- Last known good version: none
- IDE: Visual Studio 2019 Version 16.7.2
- Platform Target Frameworks:
- iOS: all version
- Android: all version
- Affected Devices: all devices
Screenshots
Reproduction Link
https://github.com/amr-moomen/CollectionViewIsEnabled
same
This is still happening on Android. Why was it removed from the 5.0.0 Milestone? Is there a workaround?
This is still happening on Android. Why was it removed from the 5.0.0 Milestone? Is there a workaround?
Only workaround I managed to find is using:
this.Content.IsEnabled = false;
in the .cs code-behind file which disables all elements on the page - including the CollectionView (and thus its scrolling ability).
same problem here.... in two days 3 problems with 3 issues open from a long time... hope MAUI will be better @jamesmontemagno @jfversluis @davidortinau
@acaliaro 2024 update: using MAUI with .NET 8 you still can't disable a CollectionView.