..._c# listview 节点双击事件">
赞
踩
<Window.Resources>
<Style x:Key="ListItemstyle" TargetType="ListViewItem">
<EventSetter Event="MouseDoubleClick" Handler="SListView_ItemDoubleClick"/>
</Style>
</Window.Resources>
<ListView x:Name="listView1" Grid.Row="1" ItemContainerStyle="{StaticResource ListItemstyle}"/>
......
private void SListView_ItemDoubleClick(object sender, MouseButtonEventArgs e)//双击ListView1事件
{
AddButton_Click(null,null);//触发按钮AddButton点击事件,也可以是其他自定义事件
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。