Why can't I set the background color of a selected ListBoxItem in WPF?

后端 未结 4 1030
攒了一身酷
攒了一身酷 2021-01-03 01:29

When a user clicks on an ListBoxItem, I want to it to be a bold larger font red background yellow

Everything works except the background. It seems that there is a st

4条回答
  •  渐次进展
    2021-01-03 02:11

    Thanks Frances!! That did it for me, well somewhat. Here is my code that allows for the template to use the "StrColor" property for the selected and non-selected list items.

        
    
    
    

提交回复
热议问题