roubachof / Sharpnado.Presentation.Forms

Presentation layer: Xamarin Forms custom components and renderers
593 stars 74 forks source link

EmptyView? #120

Closed LegendaryB closed 4 years ago

LegendaryB commented 4 years ago

Hey,

me again. Does the HorizontalListView supports a empty view like the official Xamarin Forms CollectionView? Searched for a property but did not found one. Also tried the ControlTemplate way but the control does not have this property. Next attempt was to subclass it and doing something like this:

if (ItemsSource == null || !ItemsSource.Any())
{
   Children.Clear();
   Children.Add(EmptyView)
}

Obviously this wasn't working either because there is no Children property. Any ideas?

roubachof commented 4 years ago

All empty views in my projects are handled by the https://github.com/roubachof/Sharpnado.TaskLoaderView