【发布时间】:2011-11-25 01:02:08
【问题描述】:
我有以下数据结构:
class XItem
{
public string Name {get;set;}
public int Position { get;set;}
...
}
class MyItemList
{
public List<XItem> Items{get;set;}
...
}
现在我想将 MyItemLists 列表绑定到 WPF-ListView。我希望每个 XItem 都有一个 ListViewItem。但我不能直接绑定它,因为 Items-Property 是 XItems 的列表。
是否可以在不重构我的数据源的情况下实现这一点?
谢谢
【问题讨论】: