c# - 在不分组的情况下使用 Metro 风格的 GridView

标签 c# xaml windows-runtime

我有一个像这样的简单集合:

Source
 - Feed (which has a "Title" propety)
   - Items (colleciton of other class)

我想将 GridView 用于 Metro-Style XAML 项目,并且我想将 header 绑定(bind)到 Feed 的 Title 属性,并将集合的项目绑定(bind)到组的 ItemSource。我感到困惑(因为 XAML 绑定(bind)失败不会显示在“输出”窗口或其他来源中)。

我不想创建 IGrouping 或 IGroupInfo 来将数据硬塞到控件中。

有什么线索吗?

最佳答案

您可以通过启用 native 调试来显示绑定(bind)失败。我写在这里http://www.kelvinhammered.com/?p=150

关于c# - 在不分组的情况下使用 Metro 风格的 GridView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10002100/

相关文章:

c# - 将 Regex 结果传递给函数

c# - StatusStrip 中的标 checkout 现问题

c# - DataTrigger 不会更改 Text 属性

xaml - 在 WP7 中设置网格边框

c# - Windows 8 应用程序 - MediaElement 不播放 ".wmv"文件

c# - 运行时尝试查找 exe/dll 而不是 .winmd 引用

c# - WPF 面板标题标题

c# - 如何为实现 IEnumerable<IEnumerable<T>> 的类实现 GetEnumerator 方法

.net - WPF 网格 SharedSizeGroup 错误

c# - 取消带有超时的静态异步函数