Bug 42189 - [UWP] ViewCell with IsEnabled = false still receives focus and still fires Tapped event
Summary: [UWP] ViewCell with IsEnabled = false still receives focus and still fires Ta...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-27 11:47 UTC by John Hardman
Modified: 2017-11-17 19:05 UTC (History)
8 users (show)

Tags: ac UWP ListView ViewCell IsEnabled Selected Focused Tapped
Is this bug a regression?: ---
Last known good build:


Attachments
Cell IsEnabled not handled in UWP (307.83 KB, application/x-zip-compressed)
2017-07-06 12:29 UTC, hicham.boushaba
Details


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 for Bug 42189 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description John Hardman 2016-06-27 11:47:05 UTC
On UWP, using XF 2.3.0.49, I have a ListView, containing multiple ViewCells. The first ViewCell has IsEnabled = false, but it is still selectable (it accepts the focus using keyboard navigation) and still fires the Tapped event (by clicking using mouse).

IsEnabled should be handled so that a ViewCell with IsEnabled = false is not selectable/focusable, and so that it does not fire the Tapped event if touched or clicked.
Comment 1 hicham.boushaba 2017-07-06 12:29:08 UTC
Created attachment 23348 [details]
Cell IsEnabled not handled in UWP
Comment 2 hicham.boushaba 2017-07-06 12:30:50 UTC
This issue is still present after a year of reporting. And it's not related to ViewCells only, but all Cell types.
I attached a project which reproduces the issue using SwitchCell.

Xamarin has joined Microsoft, but still Windows platforms support is less than Android and iOS!!
Comment 3 Manuel 2017-07-10 20:19:41 UTC
Property IsEnabled is not implemented on SwitchCell's template:

https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.UAP/Resources.xaml#L410

I need this feature working on UWP, please advice.
Comment 4 E.Z. Hart [MSFT] 2017-11-17 19:05:44 UTC
This can also be reproduced with the Issue2883 UI test in ControlGallery.