请教大牛,在wpf中,如何将List中的部分值绑定到ListView上
具体是这样的,我有如下一个类
class Ethernet
{
private int ethType;
public int EthType
{
get { return ethType; }
set { ethType = value }
}
private string ethName;
public string EthName
{
get { return ethName; }
set { ethName = value }
}
}
有这样一个List
List<Ethernet> ethList ,里面有很多Ethernet对象,然后我想将ethList绑定到ListView上,但是我只想绑定ethList[i].EthType != 0的内容,我不想让ethList中EthType == 0的对象出现在ListView上
不知道该如何绑定呢?