Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to color a list box item at run time

$
0
0

I do not want to change colors in a selected or a highlighted item.  I want to color foreground on any item based on a program condition.

IN windows forms I could change the drawmode property to ownerdrawfixed and then override the listbox rendering event and paint the item based on condition.

I don not find such a property in the WPF listbox.  Is there a different way to do this?


NR

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>