TreeViewControl.NodeDoubleClick Event
Occurs when a user double-clicks a node.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Event Data
The NodeDoubleClick event's data class is DevExpress.Xpf.Grid.TreeList.NodeDoubleClickEventArgs.
Remarks
The NodeDoubleClick event occurs after a user double-clicks a row. The event parameter’s RowDoubleClickEventArgs.HitInfo property returns the view element that has been double-clicked.
The following code sample copies the node value to the clipboard when a user double-clicks a node.
<dxg:TreeViewControl x:Name="treeview"
ShowAutoFilterNode="True"
NodeDoubleClick="treeview_NodeDoubleClick"/>
void treeview_NodeDoubleClick(object sender, DevExpress.Xpf.Grid.TreeList.NodeDoubleClickEventArgs e) {
if (e.HitInfo.RowHandle >= 0) treeview.CopyToClipboard();
}
For information about hit testing, refer to the following DevExpress WPF Grid help topic: Hit Information.
See Also