[英]Using the Metro-Style GridView without Grouping
I have a simple collection like this:我有一个像这样的简单集合:
Source - Feed (which has a "Title" propety) - Items (colleciton of other class)
I want to use the GridView for Metro-Style XAML project and I want to bind the header to the Title property of the Feed and the items of the collection to the ItemSource of the group.我想将 GridView 用于 Metro-Style XAML 项目,我想将 header 绑定到 Feed 的 Title 属性,并将集合中的项目绑定到组的 ItemSource。 I'm baffled (since XAML binding failures don't show up in Output window or in another source).
我很困惑(因为 XAML 绑定失败不会出现在 Output window 或其他来源中)。
I don't want to have to create an IGrouping or IGroupInfo to shoehorn the data into the control.我不想创建 IGrouping 或 IGroupInfo 来将数据硬塞到控件中。
Any clues?有什么线索吗?
You can show the binding failures by enabling native debugging.您可以通过启用本机调试来显示绑定失败。 I wrote it up here http://www.kelvinhammered.com/?p=150
我把它写在这里http://www.kelvinhammered.com/?p=150
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.