Change ListViewItem background colour on mouse over

前端 未结 3 424
梦如初夏
梦如初夏 2020-12-16 01:26

I need some help here. I can\'t understand why none of the solutions I found work for my case. Let\'s consider a Listview with these items:



        
3条回答
  •  Happy的楠姐
    2020-12-16 01:54

    The easiest way to see and change all styling-options for a given element is to export the default template for a control.

    Therefore open Visual Studio or Blend and Right Click in the Design View on a control. Hover to 'Edit Template' -> And select 'Edit a Copy...' Output:

            
            
            
            
            
            
    
            
    

    Now you have a good starting point to get your ItemContainerStyle customized.

提交回复
热议问题