WPF ListView ScrollViewer Double-Click Event

后端 未结 4 969
予麋鹿
予麋鹿 2021-01-19 07:48

Doing the below will reproduce my problem:

  • New WPF Project
  • Add ListView
  • Name the listview: x:Name=\"lvList\"
  • Add enough ListViewItem
4条回答
  •  盖世英雄少女心
    2021-01-19 08:19

    I don't have VS handy to test if this works, but have you tried handling the double-click event on the ListViewItems rather than the ListView itself?

    
    

    That should handle the MouseDoubleClick event on any child ListViewItem controls inside the ListView. Let us know if it works!

提交回复
热议问题