C#C
C#3y ago
1 reply
Mars

❔ Styling ListView column header with one big gradient

Trying to style a listview column header with a gradient. I want the gradient to be a seamless gradient spanning all the headers, but I can only get the gradient to repeat per header. See image for visual.

What I want is for the dark blue to start to the left of Room/Zone, and then have a seamless transition into the orange color which ends to the right of Apply Scene. Can this be done?

I'm currently setting the background with a lineargradientbrush inside a Style tag contained by the GridView.ColumnHeaderContainerStyle tag.
image.png
Was this page helpful?