Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在保持可排序标题的同时删除 flex 中的网格标题翻转?
要删除翻转颜色,一个技巧是将翻转颜色设置为与样式表中的网格标题颜色或 MXML 中的内联颜色相同:
DataGrid { headerColors: #0079FF, #0079FF; }
这是你想要达到的目标吗?
简短的回答是肯定的。我没有一个很好的例子给你,但是你需要扩展一些类来覆盖翻转颜色,最好的办法是找出标题翻转颜色是如何分配的,并给它一个 0 的 alpha。