How to make WPF DataGrid Column Header transparent -
I am trying to make the column headers of my WPF Datagrid transparent.
I'm able to set it in a color without the problem, but I'm not transparent. Whatever I have tried here is:
& lt; Style x: key = "DataGrade column header stale" target type = "{x: type vaccine: datagrid column header}" & gt; & Lt; Setter property = "background" value = "transparent" /> & Lt; Setter Property = "Foreground" Value = "# C2C4C6" /> & Lt; / Style & gt; & Lt; Style x: key = "dashboard grid style" target type = "{x type type: datagrid}" & gt; & Lt; Setter property = "column header stale" value = "{static processing software DatagridColumnHeaderStyle}" /> & Lt; Setter property = "background" value = "transparent" /> & Lt; Setter Property = "RobackGram" value = "Transparent" /> & Lt; / Style & gt; & Lt; Tk: Datagrid style = "{static resource dashboard gridstyle}" & gt; ... & lt; / Tk: datagrid & gt;
With this code, it takes the default brush.
What am I missing?
I used snoop to look at what was happening. It seems that another DataGridColumnHeader is always built behind the one you are modifying, and it is not affected by variations on styles. When you set a transparent background, is actually being implemented correctly, then what you see is a ghost makeover (which has a normal gray background).
If you apply colorful background and play with opacity, then you will see how both colors get, I do not know that it can be solved.
Comments
Post a Comment