ListView usage in ERP-DEV

ListView Learning Note

how to add double click event to listviewitem in ListView.

  1. refer link in stackoverflow
  2. Some notes about this. we can use add event in Style by using EventSetter.
    Sample code:
    xaml:
    <ListView.ItemContainerStyle>
        <Style TargetType="ListViewItem">
            <EventSetter Event="MouseDoubleClick" Handler="MouseDoubleClickEvent" />
        </Style>
    </ListView.ItemContainerStyle>
    

xmal.cs:

```
privite void MouseDoubleClickEvent(object sender, EventArgs e)
{
    
}
```
原文地址:https://www.cnblogs.com/kongshu-612/p/5514829.html