GridView DoubleClick

前端 未结 3 1641
温柔的废话
温柔的废话 2020-12-18 12:25

I have a GridView where I want to detect a doubleclick event on the items in the list, i do it as follows:


    
               


        
3条回答
  •  遥遥无期
    2020-12-18 13:22

    You can add the MouseDoubleClick event to ListViewItem in the ItemContainerStyle like this

    
        
            
        
    
    

    Code behind..

    void ListViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    {
        //...            
    }
    

提交回复
热议问题