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)
{
    
}
```
posted @ 2016-05-21 15:24  kongshu  阅读(143)  评论(0编辑  收藏  举报