Hi,
I've some problem with binding SfListView to ObservableCollection<T>: when collection contains more then one element they are showed corretly into Xaml page, instead when the collection contains only one element this is not show.
XAML:
<ContentPage.Content>
<StackLayout>
<!-- Frame cover with gallery and commands-->
<Frame HasShadow="True" BackgroundColor="White" Padding="0" >
<StackLayout VerticalOptions="Start" Padding="0" Spacing="0">
<!-- Cover -->
<Grid BackgroundColor="White" HeightRequest="120">
<Image Source="cover.png" Opacity="0.5" Aspect="AspectFill" />
<sflistview:SfListView Orientation="Horizontal" ItemSpacing="0" ItemSize="120"
ItemsSource="{Binding Pictures}" >
<sflistview:SfListView.Behaviors>
<behaviors:EventToCommandBehavior
EventName="ItemTapped"
Command="{Binding ViewAlbumCommand}" />
</sflistview:SfListView.Behaviors>
<sflistview:SfListView.ItemTemplate>
<DataTemplate>
<ffimage:CachedImage Aspect="AspectFill" Source="{Binding ThumbUri}" />
</DataTemplate>
</sflistview:SfListView.ItemTemplate>
</sflistview:SfListView>
</Grid>
<!-- other grid -->
</StackLayout>
</Frame>
<!-- other frame -->
</StackLayout>
</ContentPage.Content>
Why?
Thnks,
Valeriano Simeone