Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
When using buttons within a Cell view and Binding them to a command on the item view model, the binding gets out of sync when new ViewCells are created/reused during normal scrolling/updates. This is observable when scrolling the list back and forth quickly or reloading the Bound List item source property (most apparent).
The theory is the button's isEnabled property not getting updated because it is indirectly bound to the Commands CanExecute Method via the command binding, and when the ViewCell is recycled it does not re-query the Command for the IsEnabled value.
We have tried binding the IsEnable property separately but is does not take effect when using command binding, and have had to resort to binding the IsVisible property to hide the buttons.
(This issue is not observable on Android, also included in the project)
**Steps to Reproduce:**
Run the sample multiple times as the issue is somewhat random when scrolling the list and depends on the speed of the scrolling. Also scrolling back to the top of the list will show a jumbled up list
Using the pull to refresh on the list cause the issue to consistently appear.
Buttons in the same list position will switch enabled state when the view cell is reused. Some that are originally enabled but after scrolling to the bottom of the list and back to the top they are not.
Screenshot - https://dl.dropboxusercontent.com/u/62849286/Cases/220804/example.png
The correct button states, based on the IsEnabled values
**Build Date & Platform:**
- XF 1.3
- XF 18.104.22.16847
- XF 1.5.1-pre1
Hi Matthew, we can suggest a workaround: using the pre release version 1.5.2 and setting ListViewCachingStrategy.RecycleElement on the ListView constructor should do the trick.
Awesome! Thanks Rui!
Should be fixed in 1.5.2-pre2