在代码中设置排序时,ColumnHeader 的箭头不指向任何方向
当在代码中将排序添加到 ListCollectionView 时,如下所示:
RowViewModelsView.SortDescriptions.Add(new SortDescription("FilterOrder", ListSortDirection.Ascending));
它将正常工作。然而,列标题上的实际箭头并不指向任何方向。仅当我自己实际单击列标题(并因此再次排序)时,这才有效。
我想我必须发出通知,但不知道在哪里显示箭头。
非常感谢,
When adding the sortings to A ListCollectionView in the code like this:
RowViewModelsView.SortDescriptions.Add(new SortDescription("FilterOrder", ListSortDirection.Ascending));
It will work fine. However the actual arrow on the column Header doesn't point to any direction. This only works if I actually click on the column header myself (and hence sort again).
I think I have to raise a notification, but have no idea where to get the arrows shown.
Many Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
Try this: