G
Guest
I'm struggling with knowing how to change the colors used when selecting an
item in a databound ListBox. If I have a listbox which uses a datatemplate
for items, I don't know how to use triggers to change the foreground and
background color in the template (if it was a ListBoxItem, I would say
ListBoxitem.IsSelected, but it is a Person for example) based on the item
being selected.
The problem is that the default selection foreground and background color
don't work with my DataTemplate's Gradient colors...text gets hidden
item in a databound ListBox. If I have a listbox which uses a datatemplate
for items, I don't know how to use triggers to change the foreground and
background color in the template (if it was a ListBoxItem, I would say
ListBoxitem.IsSelected, but it is a Person for example) based on the item
being selected.
The problem is that the default selection foreground and background color
don't work with my DataTemplate's Gradient colors...text gets hidden