- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Windows Phone 8.1 WinRT 应用程序。我正在使用 SemanticZoom + ListView 组合通过 CollectionViewSource 显示分组列表。 当我从所有组中删除所有项目时 (它们是 ObservableCollections)并开始将项目放回这些空组调试器中断并在读取 DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION 的位置显示“agip.*”;这曾经发生过一段时间,但现在由于某种原因我不知道我的应用程序只是退出并且调试停止而没有任何错误消息;这就是为什么我不记得确切的文件名的原因。
我有两个问题:
1)我怎样才能让调试器再次工作,即显示“agip.*”页面而不是静默退出?
2)通过反复试验,我设法通过更改来找出原因<ListView.GroupStyle><GroupStyle HidesIfEmpty="true"
至<ListView.GroupStyle><GroupStyle HidesIfEmpty="false"
.
瞧我的应用程序没有任何问题。这可能是 WinRT 中的错误吗?
PS:我可以通过转换器将组标题可见性绑定(bind)到 .items.count 来实现 HidesIfEmpty 行为,所以这不是问题。
最佳答案
回答您的问题
1) How can I get the debugger work again i.e. to display that "agip.*" something page and not just silently quit?
2) By trial and error I managed to track down the cause of this by changing <ListView.GroupStyle><GroupStyle HidesIfEmpty="true" to <ListView.GroupStyle><GroupStyle HidesIfEmpty="false". And voila my app works without any problems. Could this be a bug in the WinRT?
I can achieve HidesIfEmpty behaviour by binding group header visibility to .items.count through a converter so that's not an issue here.
foreach(var group in GroupsCollection)
{
group.Clear();
await Delay(1); // this is workaround
group.Add(newItem);
}
关于debugging - GroupStyle HidesIfEmpty 中是否有错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24398252/
我有一个 Windows Phone 8.1 WinRT 应用程序。我正在使用 SemanticZoom + ListView 组合通过 CollectionViewSource 显示分组列表。 当我
我是一名优秀的程序员,十分优秀!