Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Can't get to ListView context actions on selected list item under iOS with Xamarin.Forms 1.3.1+

$
0
0

In our app we leave the currently-selected item in a list view (bound to an ObservableCollection<T>) as the SelectedItem, so that the selected list item is always highlighted. Our list view cell is a stack layout containing another stack layout of two labels and an image in a relative layout.

I just noticed that for the selected item, swiping to reveal the context buttons (Edit & Delete for our app) doesn't work on the selected item. Unselected items work just fine. Also, the selected item worked fine in our initial release with Xamarin.Forms version 1.3.0.6286, and the structure of our list view cell has not changed since then.

I can sometimes see the Edit & Delete buttons rendered while swiping slowly, but even when I can see them rendered, when I lift my finger from the swipe gesture, then the buttons are "erased" (maybe just overlaid or -painted with the selected highlight color) and the area where the buttons would be does not respond to taps as the action buttons would.

I haven't been able yet to spend the time to put together a sample app to try to demonstrate the behavior, but I did try it in Eric Polerecky's context actions sample app (https://github.com/detroitpro/XamarinFormsContextActionsSample) and it worked OK in his sample, so I suspect an interaction between the post-1.3.0 Forms library and the structure of our list view cell.

Anyone else see this? Sorry, I've done the bad thing and posted before searching, will search the forums later when I get some time :)


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>