Get the item doubleclick event of listview

后端 未结 16 1467
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 02:17

What do I need to do in order to reference the double click event for a listview control?

16条回答
  •  清歌不尽
    2020-12-01 02:30

    
        
    
    

    The only difficulty then is if you are interested in the underlying object the listviewitem maps to e.g.

    private void listViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
    {
        ListViewItem item = sender as ListViewItem;
        object obj = item.Content;
    }
    

提交回复
热议问题