I have a WPF Listbox with AlternationCount=2
.
I want to disable selection of the items in the box, but I want to keep the colors.
When I set IsEnabled="False"
selection of the items in the listbox is disabled but the text and the background becomes gray.
How can I disable selection but keep the foreground color and alternation background color as if it was enabled?