TreeViewControl.ExpandStateFieldName Property
In This Article
Gets or sets the field name in a data source that specifies expanded nodes. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
#Declaration
#Property Value
Type | Description |
---|---|
String | The field name in a data source that specifies expanded nodes. |
#Remarks
<dxg:TreeViewControl ItemsSource="{Binding EmployeeDepartments}"
ChildNodesPath="Employees"
TreeViewFieldName="Name"
ExpandStateFieldName="Expanded"/>
public class EmployeeDepartment {
public string Name { get; set; }
public ObservableCollection<Employee> Employees { get; }
public bool Expanded { get; set; }
}
See Also