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

Is there a way to hide a viewcell in a listview?

$
0
0

I'm trying to dynamically show and hide viewcells or their contents inside of a listview (and similarly inside of a scrollview). In both cases, setting IsVisible=false on the contents the items are no longer visible but the UI does not redraw to close up the now empty space.

<ViewCell>
    <StackLayout IsVisible="false"...

Is this possible, or alternately, can you show/hide the contents and cause the display to redraw?

I can of course add and remove items from the listview and maybe that is the correct way to implement this?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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