Can anyone explain to me why the contents of my Frame are not displayed inside of a SfListView? I just get white boxes (see image).
Thanks!
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:syncfusion="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms"
x:Class="Prayer.Mobile.Pages.TestPage"
Title="Test Page">
<ContentPage.Content>
<syncfusion:SfListView SelectionMode="Single" ItemsSource="{Binding Items}">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Frame CornerRadius="10" OutlineColor="Blue" VerticalOptions="CenterAndExpand">
<!--<Label Text="{Binding .}" />-->
<Label Text="Testing" />
</Frame>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</ContentPage.Content>
</ContentPage>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Prayer.Mobile.Pages
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class TestPage : ContentPage
{
public class TestPageModel
{
public List<String> Items { get; set; }
}
public TestPage()
{
TestPageModel model = new TestPageModel();
model.Items = new List<string> { "One", "Two", "Three" };
BindingContext = model;
InitializeComponent();
}
}
}