Back to Devexpress

SelfReferenceTreeDescription Class

maui-devexpress-dot-maui-dot-treeview-a5a8cc48.md

latest2.3 KB
Original Source

SelfReferenceTreeDescription Class

Describes how to build a tree from a self-referenced data structure.

Namespace : DevExpress.Maui.TreeView

Assembly : DevExpress.Maui.TreeView.dll

NuGet Package : DevExpress.Maui.TreeView

Declaration

csharp
[DXLicenseMAUI]
public class SelfReferenceTreeDescription :
    TreeDescriptionBase

Remarks

The following code snippet builds a tree from a self-referenced data structure for the DXTreeView control:

xaml
<dxt:DXTreeView ...
    x:Name="treeView"
    ItemsSource="{Binding Nodes}" 
    ItemTemplate="{StaticResource nodeTemplate}"
    DisplayMember="Name">
    <dxt:SelfReferenceTreeDescription KeyFieldName="Id" ParentFieldName="ParentId" >
        <dxt:SelfReferenceTreeDescription.RootValue>
            <x:Int32>109</x:Int32>
        </dxt:SelfReferenceTreeDescription.RootValue>
    </dxt:SelfReferenceTreeDescription>
</dxt:DXTreeView>

For more information, refer to the following help topic: Self-Referenced Data Structure.

Implements

INotifyPropertyChanged

IElementController

Inheritance

System.Object BindableObject Element DevExpress.Maui.Core.Internal.DXElementBaseCore DXElementBase TreeDescriptionBase SelfReferenceTreeDescription

Extension Methods

Yield<SelfReferenceTreeDescription>()

YieldIfNotNull<SelfReferenceTreeDescription>()

See Also

SelfReferenceTreeDescription Members

DevExpress.Maui.TreeView Namespace