将ListView列绑定到对象 [英] Bind ListView column to object

查看:55
本文介绍了将ListView列绑定到对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用混合3.我有一个具有一些属性的实体User。我想在列表视图中显示我的用户列表。这工作正常,但我必须手动添加所有列并将它们绑定到我的实体的单个属性。我将整个Listview绑定到Users-Collection。我认为Blend和xaml在绑定实体时非常聪明地生成所有需要的列。我想它会自动显示listview中的所有列。这有可能吗?或者我错了什么?


VB.NET& C#.NET

Hi,

i work with blend 3. I have an entity User with some properties. I want to show the list of my users in a listview. That works fine, but i have to add all the column manually and bind them to the single properties of my entity. I bound my entire Listview to the Users-Collection. I thought Blend and xaml is so smart to generate all the needed columns when i bind the entity. I want that it shows automatically all the columns in the listview. Is that possible at all? Or what do i wrong?


VB.NET & C#.NET

推荐答案

我的英语是坏还是没有解决方案???
Was my english to bad or is there just no solution???


这篇关于将ListView列绑定到对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆