//定义数据结构
class Student
{
public int Id { get; set; }
public string Name { get; set; }
public DateTime Birth { get; set; }
}//定义ListView 视图结构
<ListView x:Name="livStudent">
<ListView.View>
<GridView>
<GridViewColumn Header="Id" DisplayMemberBinding="{Binding Path=Id}" />
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Name}" />
<GridViewColumn Header="Birth" DisplayMemberBinding="{Binding Path=Birth}" />
</GridView>
</ListView.View>
</ListView>//构造数据源
var students = new Student[2];
students[0] = new Student() { Id = 1, Name = "a", Birth = new DateTime(2015, 1, 1) };
students[1] = new Student() { Id = 2, Name = "b", Birth = new DateTime(2015, 2, 1)};
//绑定数据
livStudent.ItemsSource = students;
DisplayMemberBinding="{Binding Path=Id}"
设置绑定的属性名称, 注意:是属性。