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

Show and Hide controls present in listview's view cell based on server response

$
0
0

I have a listview in which I have created a custom view cell,

in that custom view cell I have a label, based on the server response i want to show and hide the label in different ViewCell.

My question is how can i achieve this?

Do i create a private method in my view model class which would do the dirty work of iterating the list and based on my server response, I manually inject a Boolean flag inside the list object and Bind a bool value to the label IsVisible property OR Is there some other way to achieve this


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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