xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] BindableLayout doesn't show item template when visibility changed #10572

Open distantcam opened 4 years ago

distantcam commented 4 years ago

Description

When toggling an item in a BindableLayout, the templated control for the item stops showing when also changing the visibility.

Steps to Reproduce

  1. Clone https://github.com/distantcam/BindableLayoutIssue
  2. Build and run
  3. Pick one of the checkboxes and toggle it on and off several times.

Expected Behavior

The item list below the checkbox list should update to show the selected items as they are checked on/off.

Actual Behavior

When an item is first selected it appears. Then when you deselect it disappears. Then when you reselect it the item seems to appear again, but the item template is missing.

It appears to affect all platforms and versions.

Basic Information

Screenshots

Screencap showing the issue by toggling the checkboxes

Reproduction Link

https://github.com/distantcam/BindableLayoutIssue

Workaround

None

distantcam commented 4 years ago

Slight update. Turns out the converter isn't affecting anything so I've taken it out of the repro.