C
C#14mo ago
Somet

❔ Cant change foreground on comboboxitems in WPF?

Trying to change the foreground color for my combobox items to white code attached in pastebin https://pastebin.com/zQxqWM7C
Pastebin
teaereteat - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
4 Replies
Mayor McCheese
Mayor McCheese14mo ago
Iirc this is pretty complex and involves some wpf black magic I tried looking for some old code, but couldn't find it. A quick google search found: https://stackoverflow.com/questions/65630105/how-do-i-change-the-colour-of-a-wpf-checkbox-tick I was going to suggest the blend method mentioned in one of the answers.
HimmDawg
HimmDawg14mo ago
Easiest solution that comes into my mind is to override the ItemTemplate of the combobox with a TextBlock and set that Foreground property to white
Mayor McCheese
Mayor McCheese14mo ago
Oh.. ignore what I said, i thought this was for a different control
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise 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
More Posts