Back to Devexpress

TreeListNode.IsExpanded Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistnode-0cb58de5.md

latest3.5 KB
Original Source

TreeListNode.IsExpanded Property

Gets or sets whether the treelist row is expanded.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public override bool IsExpanded { get; set; }
vb
Public Overrides Property IsExpanded As Boolean

Property Value

TypeDescription
Boolean

true, if the treelist row is expanded; otherwise, false.

|

Remarks

Tip

Topic : Expand and Collapse Nodes

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsExpanded property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-grid-sync-isnodeexpanded-with-view-model/CS/DevExpress.Example04/BindableExpandingBehavior.cs#L100

csharp
if(this.AssociatedObject.IsValidRowHandle(rowHandle)) {
    node.IsExpanded = isExpanded;
}

wpf-treelist-iterate-through-nodes-with-the-treelistnodeiterator/CS/WpfApplication1/MainWindow.xaml.cs#L14

csharp
while (nodeIterator.MoveNext())
        nodeIterator.Current.IsExpanded = nodeIterator.Current.Nodes.Count >= minChildCount;
}

wpf-grid-sync-isnodeexpanded-with-view-model/VB/DevExpress.Example04/BindableExpandingBehavior.vb#L102

vb
If Me.AssociatedObject.IsValidRowHandle(rowHandle) Then
    node.IsExpanded = isExpanded
End If

wpf-treelist-iterate-through-nodes-with-the-treelistnodeiterator/VB/WpfApplication1/MainWindow.xaml.vb#L17

vb
While nodeIterator.MoveNext()
    nodeIterator.Current.IsExpanded = nodeIterator.Current.Nodes.Count >= minChildCount
End While

See Also

TreeListNodeBase.IsExpanded

TreeListRowData.IsExpanded

TreeListNode Class

TreeListNode Members

DevExpress.Xpf.Grid Namespace