Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

[Bug] CollectionView IsEnabled property not working as intended

Open amr-moomen opened this issue 4 years ago • 5 comments

Description

when CollectionView.IsEnabled is set to False the selection and scrolling remain enabled

Steps to Reproduce

  1. Create new collection view
  2. 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

bugCollection

Reproduction Link

https://github.com/amr-moomen/CollectionViewIsEnabled

amr-moomen avatar Sep 06 '20 13:09 amr-moomen

same

mina5500 avatar Sep 06 '20 14:09 mina5500

This is still happening on Android. Why was it removed from the 5.0.0 Milestone? Is there a workaround?

pledi avatar Mar 09 '21 11:03 pledi

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).

lukeid123 avatar May 06 '21 19:05 lukeid123

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 avatar Jul 27 '22 07:07 acaliaro

@acaliaro 2024 update: using MAUI with .NET 8 you still can't disable a CollectionView.

beeradmoore avatar Jan 08 '24 23:01 beeradmoore