Bug 38124 - Setting SelectedBackgroundView is ignored when CachingStrategy="RecycleElement"
Summary: Setting SelectedBackgroundView is ignored when CachingStrategy="RecycleElement"
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-28 12:49 UTC by Mike Chidsey
Modified: 2017-06-28 07:59 UTC (History)
7 users (show)

Tags: ListView RecycleElement iOS ac
Is this bug a regression?: ---
Last known good build:


Attachments
Repro (20.64 KB, application/x-zip-compressed)
2017-06-19 21:50 UTC, Samantha Houts [MSFT]
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 38124 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 Mike Chidsey 2016-01-28 12:49:44 UTC
In trying to implement a custom background color for selected list items I found that if the caching strategy is RecycleElement the settings are ignored.  Changing the CachingStrategy back to RetainElements makes it work as expected.

I'm using code similar to this:
http://stackoverflow.com/questions/25885238/xamarin-forms-listview-set-the-highlight-color-of-a-tapped-item/26896715#25887514
https://forums.xamarin.com/discussion/20798/listview-selected-item-background-color
Comment 1 Rui Marinho 2016-12-20 19:45:41 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue, we would very much appreciate it.  


For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d  

Warm regards, 

Xamarin Forms Team
Comment 2 eusebiu.marcu 2017-02-01 15:02:37 UTC
Here's a sample project:
https://drive.google.com/open?id=0B_5lxJaDe7iib09tRFd2SkxlRjQ
Comment 3 Chris King 2017-06-19 17:21:20 UTC
Assigned to you as you were last to request additional info.
Comment 4 Samantha Houts [MSFT] 2017-06-19 21:50:24 UTC
Created attachment 22982 [details]
Repro

Rehosting reproduction for convenience.
Comment 5 Samantha Houts [MSFT] 2017-06-19 22:00:27 UTC
Issue still present as of latest stable.
Comment 6 Samantha Houts [MSFT] 2017-06-19 22:04:21 UTC
Oops, forgot to set status to Confirmed :)