Listview selection color

后端 未结 1 1657
孤独总比滥情好
孤独总比滥情好 2021-01-22 11:08

I\'m playing around with wpf and I saw the following article: WPF ListView Inactive Selection Color

I want to do something similar. I want to put a border around an a li

1条回答
  •  既然无缘
    2021-01-22 11:38

    Change the ItemContainerStyle on the ListView to a style that doesn't change the background when an item is selected but instead changes the color of a border. Below is an example:

      
    

    And then use the style like this:

    
       ...
    
    

    0 讨论(0)
提交回复
热议问题