How does the color of the foreground text (and not the selected text or selection background) in the wpf list change? let's say, for example, I wanted to make all the letters "a" green, all the letters "b" red, etc.? how can i programmatically do this as i add them to c # all I can find is posting people about changing the selected text, I want to change the color of the foreground text so that it looks more organized.
on the side of the note, why does stackoverflow give me problems with this question? says the question is "not up to quality standards." I think this is a perfectly legitimate question. What filter is put to this question that does not meet the standards?
I want to do this:
string[] pics= Directory.GetFiles(@"C:\\", "*.jpg");
foreach (string pic in pics)
{
CHANGE THE FOREGROUND COLOR TO RED
lbxFileList.Items.Add(pic);
}
string[] vids= Directory.GetFiles(@"C:\\", "*.mpg");
foreach (string vid in vids)
{
CHANGE THE FOREGROUND COLOR TO GREEN
lbxFileList.Items.Add(vid);
}