uwp win10 Listview SelectedItem Style

前端 未结 3 2009
攒了一身酷
攒了一身酷 2020-12-09 22:20

Is there a way to change the properties of a ListviewItem when this one is selected?

As an example, I want that a rectangle inside the ListviewItem to be Red when s

3条回答
  •  执笔经年
    2020-12-09 22:55

    For anyone finding this later, I have resolved this with a library in Nuget: https://github.com/JerryNixon/Template10.ListHelpers

    It's behavior uses separate styles for each state.

    
    
    
    

    Using it is pretty simplistic, too. It's an attached property.

    
        
            
        
    
    

    // best of luck

提交回复
热议问题