WinUI-DataGrid AlternatingRowBackground not working #4561
-
I have created a style for the DataGrid. Unfortunately it does AlternatingRowBackground not work.
How can I solve this |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@amazatis generally implicit styles don't work the same in UWP/WinUI 3 as they do in WPF. (They can sometimes work if they're instead included in your Have you tried giving your style a Key and then using that on where you use the DataGrid referencing the StaticResource? |
Beta Was this translation helpful? Give feedback.
-
The Problem was this Color: SystemAccentColorLight3. AlternatingRowBackground can only work with brushes. |
Beta Was this translation helpful? Give feedback.
The Problem was this Color: SystemAccentColorLight3. AlternatingRowBackground can only work with brushes.