How to highlight selected item in ItemsControl?

后端 未结 2 1261
无人共我
无人共我 2020-12-10 14:17

I have the following XAML. How can i highlight the selected item in the ItemsControl ? I can override the selected item template for ListView but how to achieve the same for

2条回答
  •  爱一瞬间的悲伤
    2020-12-10 15:09

    An ItemsControl does not track the SelectedItem

    If you want that behavior, I would suggest overwriting the styles and templates for a ListBox

    
    
        
            
            
        
    
        
            
                
            
        
    
        
            
                    
                        
                        
                    
            
        
    
    

提交回复
热议问题