Bug 53224

Summary: CanExecute not used in ViewCells in UWP
Product: Forms Reporter: EB <evin.ballantyne>
Component: FormsAssignee: Chris King <chris.king>
Status: VERIFIED FIXED    
Severity: normal CC: chris.king, jas, paul.dipietro, rui.marinho, sahou, v-sapaun
Priority: ---    
Version: 2.3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: tableview ac Is this bug a regression?: ---
Last known good build:
Attachments: Small reproduction of the bug.

Description EB 2017-03-10 16:06:42 UTC
Created attachment 20271 [details]
Small reproduction of the bug.

In TableViews in UWP, Viewcells don't use the CanExecute event. I have a bigger project which invokes the event in a TextCell and ImageCell, but I've created a small reproduction to show the bug (no event invoked, just a hard-coded function that returns false). I have confirmed that the bug does not exist in Android and iOS, at least on my bigger project and in the reproduction. Tested in both Forms 2.3.3.193 and 2.3.4.212-pre4

I will admit to not testing this with any other controls that have a Command Binding such as buttons, or ViewCells in a ListView, and I have not tested earlier releases of Xamarin Forms. I have also not looked into a work-a-round using a custom renderer. If I get some time to work on this though, I will update this thread.

Hopefully my attachment works, it's my first time submitting a bug report.
Comment 1 Paul DiPietro [MSFT] 2017-03-10 17:46:55 UTC
Thanks for the reproduction; there is a noted difference in behavior between UWP and the other platforms, and I also checked against the latest nightly build to be sure.
Comment 3 Rui Marinho 2017-03-15 10:15:26 UTC
Should be fixed on 2.3.5-pre1
Comment 4 Saurabh Paunikar 2017-07-13 06:58:55 UTC
Verified on xamarin.form version 2.3.5.256-pre6

ScreenCast Link: https://www.screencast.com/t/g59IwTCn