Hi, I'm sure this is something I'm just missing but I need another pair of eyes... I have a Content Page that I put the below listview in it and I wanted the list to have a span count of 2, like your example online. I was have trouble with the layout and I removed the LayoutDefinition and once it started working properly (single list view) I add the Definition back in (copy/paste) and compiled and got the error.
If I remove the LayoutDefinition tag it works....
My includes:
xmlns:tDataCtrl="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:tListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.XamarinForms.DataControls"
<tDataCtrl:RadListView x:Name="memberList" ItemsSource="{Binding TeamMembers}" Margin="20,0,0,0" BackgroundColor="White" VerticalOptions="FillAndExpand" IsVisible="{Binding MembersVisible}">
<tDataCtrl:RadListView.ItemTemplate>
<DataTemplate>
<tListView:ListViewTemplateCell>
<tListView:ListViewTemplateCell.View>
<Grid BackgroundColor="White">
<Grid.RowDefinitions>
<RowDefinition Height="220"/>
<RowDefinition Height="18"/>
<RowDefinition Height="18"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ff:CachedImage Source="{Binding Image}" HeightRequest="220" Aspect="AspectFit" Grid.Row="0"
HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="0,0,10,0"/>
<Label Text="{Binding FullName}" FontSize="{Binding RoleToPresent}" LineBreakMode="WordWrap" TextColor="Black" Margin="8,0,8,0" Grid.Row="1" HorizontalOptions="Start"/>
<Label Text="{Binding RoleToPresent}" FontSize="{Binding RoleToPresent}" LineBreakMode="WordWrap" TextColor="Black" Margin="8,0,8,0" Grid.Row="2" HorizontalOptions="Start"/>
</Grid>
</tListView:ListViewTemplateCell.View>
</tListView:ListViewTemplateCell>
</DataTemplate>
</tDataCtrl:RadListView.ItemTemplate>
<tDataCtrl:RadListView.LayoutDefinition >
<tListView:ListViewGridLayout Orientation="Vertical" ItemLength="280" SpanCount="2" VerticalItemSpacing="30" HorizontalItemSpacing="30"/>
</tDataCtrl:RadListView.LayoutDefinition>
</tDataCtrl:RadListView>
Thank you,
Brian