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

How to show a message when items count is zero in an ObservableCollection?

$
0
0

As usual I have an ObservableCollection set as ItemsSource of a ListView. I want to display "--- No Data ---" in the middle of the display when the Items count is zero.

I tried setting IsVisible of Label and ListView using OC.Items.Count but in vain as the count value passed to the Converter is always zero.

How can I get it done?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



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