Bug 31812 - Custom ViewCellRenderer OnCellPropertyChanged not Always fired
Summary: Custom ViewCellRenderer OnCellPropertyChanged not Always fired
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
Depends on:
Reported: 2015-07-10 03:53 UTC by stefano.balzarotti
Modified: 2017-02-10 19:16 UTC (History)
2 users (show)

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

Source of CustomViewCellRenderer (1.69 KB, text/plain)
2015-07-10 03:53 UTC, stefano.balzarotti
repro project (194.30 KB, application/x-zip-compressed)
2017-02-10 19:15 UTC, Jimmy [MSFT]

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 stefano.balzarotti 2015-07-10 03:53:38 UTC
Created attachment 11968 [details]
Source of CustomViewCellRenderer

Steps to reproduce:

1) Create a TabbedMenuPage with some pages
2) In the first page create a ListView
3) Create a custom ViewCell, see the attachment for an example
4) Deploy the App on a device, for me is a LGE Nexus 5
5) Click on an element of listview
7) OnCellPropertyChanged for PropertyName IsSelected is fired (the cell is now selected)
8) Click on other element of listview
9) OnCellPropertyChanged for PropertyName IsSelected is fired (the old cell is now unselected)
10) OnCellPropertyChanged for PropertyName IsSelected is fired (the new cell is now selected)
11) Navigate on other page of TabbedMenuPage 
12) Navigate first page with Listview
13) The Cell is now unselected but no events was fired
14) Click on other Cell of ListView
15) The cell is now selected, but NO EVENTS ARE FIRED, OnCellPropertyChanged  NOT CALLED, THIS IS A BUG
16) Click on other cell of ListView 
17) The previous cell is now unselected, and the new is now selected, but NO EVENTS OF CUSTOM RENDERER WERE FIRED,OnCellPropertyChanged  WAS NOT CALLED, THIS IS A BUG
18)loop previuous steps, the bug persist until the app will be closed.
Comment 1 Jimmy [MSFT] 2017-02-10 19:15:56 UTC
Created attachment 19790 [details]
repro project

I can no longer reproduce this issue when using Forms

### Forms
OnCellPropertyChanged() would no longer fire after switching to another tab and then witching back.

### Forms
The event is fired properly even after switching tabs