<ListView HasUnevenRows="True" x:Name="collectionView" HeightRequest="1000"
Margin="20">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout HeightRequest="50" Margin="10" WidthRequest="200">
<Label Text="{Binding Name}" FontSize="15" TextColor="Black"/>
<Label Text="{Binding Description}" FontSize="15" TextColor="Black"/>
<ListView HasUnevenRows="True" ItemsSource="{Binding appointments}" HeightRequest="1000" Margin="20,0,0,0">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout HeightRequest="100" Margin="10" WidthRequest="200">
<Label Text="{Binding Name}" FontSize="15" TextColor="Black"/>
<Label Text="{Binding Subject}" FontSize="15" TextColor="Black"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
protected override void OnAppearing()
{
try
{
base.OnAppearing();
var appointemntsList = new List<Appointment>()
{
new Appointment() { Name="Mohamed",Subject="Sub"},
new Appointment() { Name="Mohamed",Subject="Sub"},
new Appointment() { Name="Mohamed",Subject="Sub"},
new Appointment() { Name="Mohamed",Subject="Sub"},
};
var Monkeys = new List<Appointment>()
{
new Appointment() { Name="Ahmed", Description="Desc",appointments=appointemntsList},
new Appointment() { Name="Ahmed", Description="Desc",appointments=appointemntsList},
new Appointment() { Name="Ahmed", Description="Desc",appointments=appointemntsList},
new Appointment() { Name="Ahmed", Description="Desc",appointments=appointemntsList},
};
collectionView.ItemsSource = Monkeys;
}
catch (Exception)
{
}
}
Using This Code I need to Show List View Inside List view but not working