We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfListView Binding to ObservableCollection<T>

Thread ID:





130862 Jun 7,2017 11:30 AM UTC Jun 8,2017 10:10 AM UTC Xamarin.Forms 1
Tags: SfListView
Valeriano Simeone
Asked On June 7, 2017 11:30 AM UTC

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.

            <!-- 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}" >
                                                    Command="{Binding ViewAlbumCommand}" />
                                    <ffimage:CachedImage Aspect="AspectFill" Source="{Binding ThumbUri}" />
                    <!-- other grid -->

          <!-- other frame -->

Valeriano Simeone

Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On June 8, 2017 10:10 AM UTC

Hi Valeriano, 
Sorry for the inconvenience. 
We are able to reproduce the reported issue “SfListView in Horizontal orientation does not layout when Binding only one item from ObservableCollection” at our end. As this is forum, we cannot provide patch. Therefore a new support incident has been created under your account for providing custom assemblies which includes the fix for the reported issue. Please log on to our support website to check for further updates.            
G.Muthu Kumaran. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon