I am using flowlistview
for listing images. I need to hide the image if pageStatus
value is OFF
and show the image if pageStatus
value is ON
. I tried like below:
In model:
public string pageStatus { get; set; }
public bool pictureStatus
{
get
{
if (pageStatus == "OFF")
return false;
else
return true;
}
}
In XAML added IsVisible="{Binding pictureStatus}"
for the image. The images are not showing in the UI but blank spaces are showing for OFF
status pictures like below.
I need to remove that blank space also from the UI, how can I do that?