C
C#3y ago
ghoulam

❔ Data trigger [Answered]

Hi, i am stuck with a little problem that i can't figure out due to being new to WPF, i have this datagrid and i want those columns to be gray when they receive the 0 value and with the colors in the screenshot when they're higher than 0.
2 Replies
ghoulam
ghoulamOP2y ago
Solved by using a converter with the value as value and a brush rgb code as converter parameter so if value is zero it returns gray background else it returns the brush i sent as a converter parameter.
Accord
Accord2y ago
✅ This post has been marked as answered! Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server