C
C#17mo ago
Luizdodibre

✅ Listview color

How do i put a different color for a specific item of a listview?
8 Replies
Suiram1
Suiram117mo ago
You could create a data template in whose style you put a DataTrigger bound to a bool of the data type to be displayed, with which you can evaluate whether the background or any other property of the list item should be different than normal
Denis
Denis17mo ago
What UI platform are on? WPF, winforms, avalonia, blazor...?
Luizdodibre
LuizdodibreOP17mo ago
winforms
Denis
Denis17mo ago
Then the advice above does not apply How are you adding the data to your listview? And a side question, was WinForms your choice, i.e., is this your project? If yes, it is strongly recommend to ditch winforms and use something like WPF. Styling anything in WinForms is horrible
Accord
Accord17mo 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.
Luizdodibre
LuizdodibreOP17mo ago
How can i make this?
Denis
Denis17mo ago
Make what
Luizdodibre
LuizdodibreOP17mo ago
I misunderstood, sorry
Want results from more Discord servers?
Add your server