Bug 54462 - IsEnabled inconsistent behavior between iOS and Android
Summary: IsEnabled inconsistent behavior between iOS and Android
Status: RESOLVED DUPLICATE of bug 44096
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-04-04 17:04 UTC by Chase Long
Modified: 2017-04-04 20:39 UTC (History)
2 users (show)

Tags: IsEnabled
Is this bug a regression?: ---
Last known good build:

Solution demonstrating the problems (215.68 KB, application/zip)
2017-04-04 17:04 UTC, Chase Long

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chase Long 2017-04-04 17:04:03 UTC
Created attachment 21188 [details]
Solution demonstrating the problems

IsEnabled does not propagate recursively down the view hierarchy correctly on Android.

The attached sample solution includes the following view hierarchy:


On iOS, setting IsEnabled on the ContentPage prevents clicking the nested button. On Android, setting IsEnabled on the ContentPage does not prevent clicking the nested button. In my opinion, the iOS behavior is correct, and the Android behavior is not correct.

Tested on Xamarin.Forms version, iPhone 7 Plus 10.3 simulator, Intel Atom (x86) Android 6.0 API level 23 emulator.
Comment 1 Chase Long 2017-04-04 17:09:43 UTC
At minimum, the documentation at https://developer.xamarin.com/api/property/Xamarin.Forms.VisualElement.IsEnabled/ should be updated to tell how IsEnabled behaves on each platform.
Comment 2 Jimmy [MSFT] 2017-04-04 20:39:52 UTC

*** This bug has been marked as a duplicate of bug 44096 ***