How to use a Frame as the root element of a ListView in Xamarin.Forms?

EduardoIbarra.0913EduardoIbarra.0913 USMember
edited April 2017 in Xamarin.Forms

I am trying to achieve a list of Card-like records for the timeline on an application built in Xamarin.Forms, this is the layout that more or less I need to replicate:

I think I am close, I have two records on my code behind that I assign as the ItemSource to a listView on the XAML side, and this is my result so far:

But as you can see, the elements are not showing at all inside their frame, if I replace the form controls with TextCells or ImageCells, the data shows fine. This is the XAML code I have so far:

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage Title="AudioBitts" 

    <ListView x:Name="listView">
                <ViewCell Height="300">
                    <Frame HasShadow="true" Margin="5">
                            <StackLayout Orientation="Horizontal">
                                <Image Source="{Binding UserAvatar}" />
                                <Label Text="{Binding UserName}" />
                            <Image Source="{Binding BittImage}" />


Am I missing something on the structure I am giving to my XAML code? Thanks!

Best Answer


  • kaisalar98kaisalar98 Member

    @EduardoIbarra.0913 you have to make the property HasUnEvenRows in ListView true :)

Sign In or Register to comment.