Back to Devexpress

TreeViewControl.NodeExpanding Event

wpf-devexpress-dot-xpf-dot-grid-dot-treeviewcontrol-950987a4.md

latest1.4 KB
Original Source

TreeViewControl.NodeExpanding Event

Occurs before a node is expanded.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public event TreeViewNodeAllowEventHandler NodeExpanding
vb
Public Event NodeExpanding As TreeViewNodeAllowEventHandler

Event Data

The NodeExpanding event's data class is DevExpress.Xpf.Grid.TreeList.TreeViewNodeAllowEventArgs.

Remarks

This event occurs when a user tries to expand a node. You can handle this event to cancel the action. To do this, set the event parameter’s TreeListNodeAllowEventArgs.Allow property to false.

After a user expands a node, the TreeViewControl raises the NodeExpanded event.

See Also

TreeViewControl Class

TreeViewControl Members

DevExpress.Xpf.Grid Namespace