I have a listview like the following picture. There is a more icon(in blue color) and switch on the right side of each list item.
I have a string variable called type, if "type" value is "switch", I need to hide the more icon from the list and show switch icon only and if the "type" value is "more" hide the switch from the list and show more icon only.
The more and switch are inside listview like below:
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<StackLayout>
//Items like profile image name
<Image //more icon />
<Switch/>
</StackLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Thanks in advance
