Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin forms: Hide Flowlistview item including it's space from UI based on a string value.

$
0
0

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.

enter image description here

I need to remove that blank space also from the UI, how can I do that?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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