Im quite new to the WPF, so this may be a simple question.
I have ListBox with with defined style, font and whole rest of the stuff. I want to highlight one row there, but the problem is that all rows are added programatically, so I can't just edit the row properties and change for example foreground collor (that would be enough). I know the target row ID, but I can't find any way to access its ListItemBox object. To access the specific item I used:
((MyClass)(Playlist.Items[i])).MyProperty = 0; //Access the i element of ListBox named Playlist
Is it even possible? I searched for the solutions here and on other sites, but nothing helps in my case.
Thanks for any help.
EDIT: I don't mean to select the row, but to change it's foreground color.
DataTemplate
for theListBoxItems
. – HighCore Jun 11 '13 at 18:44