Silverlight 中实体对象的分组
我有以下数据库结构,但很难在 Silverlight 窗口中显示它:
Person->PersonCamp<-Camp->CampActivities<-Activity
我有一个 WCF RIA 域服务,它封装了所有实体和正确的查询方法关于服务。
问题是 UI 必须以以下方式按阵营显示活动:
->Camp Name:
->ActivityCheckbox(Key) + Activity Name
->ActivityCheckbox(Key) + Activity Name
->ActivityCheckbox(Key) + Activity Name
我不知道如何以有意义的方式绑定它来满足要求。
任何建议将不胜感激!
I have the following DB structure and I have a hard time displaying it within a Silverlight window:
Person->PersonCamp<-Camp->CampActivities<-Activity
I have a WCF RIA domain service that encapsulates all entities and the right query methods on the service.
The problem is that the UI has to display the activities by camp in the following manner:
->Camp Name:
->ActivityCheckbox(Key) + Activity Name
->ActivityCheckbox(Key) + Activity Name
->ActivityCheckbox(Key) + Activity Name
I have no clue how to bind this in a meaningful way to fit the requirements.
Any suggestions would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在绑定之前创建一个
PagedCollectionView
。创建一个新的
PropertyGroupDescription
,指定要分组的列的名称。将
PropertyGroupDescription
添加到PagedCollectionView
,然后将网格绑定到PagedCollectionView
。Before binding create a
PagedCollectionView
.create a new
PropertyGroupDescription
, specifying the name of the column you want to group by.Add the
PropertyGroupDescription
to thePagedCollectionView
and then bind the grid to thePagedCollectionView
.