using System.Collections.Generic;
using Xamarin.Forms;
namespace ListViewDemo
{
public partial class ListViewDemoPage : ContentPage
{
public ListViewDemoPage()
{
InitializeComponent();
var strings = new List
{
new EmptyClass{Name = "Harshad Harshad Harshad Harshad Harshad Harshad Harshad Harshad", Age = 23},
new EmptyClass{Name = "Sunita", Age = 23},
new EmptyClass{Name = "Rahul", Age = 23},
new EmptyClass{Name = "Vrushbh", Age = 23},
new EmptyClass{Name = "Harmi", Age = 23},
new EmptyClass{Name = "Jigu", Age = 23},
};
MainListView.ItemsSource = strings;
}
}
}
EmptyClass.cs
using System;
namespace ListViewDemo
{
public class EmptyClass
{
public string Name { get; set; }
public double Age { get; set; }
public EmptyClass()
{
}
}
}