Back to Devexpress

TreeListNode.Content Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistnode-706ad136.md

latest5.5 KB
Original Source

TreeListNode.Content Property

Gets or sets an ItemsSource object used to create the node.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public override object Content { get; set; }
vb
Public Overrides Property Content As Object

Property Value

TypeDescription
Object

An ItemsSource object used to create the node.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Content 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#L27

csharp
while(iterator.MoveNext()) {
    this.SubscribeObject(iterator.Current.Content);
    if(iterator.Current.HasChildren) {

wpf-treelist-load-nodes-dynamically/CS/DynamicNodeLoading/MainWindow.xaml.cs#L44

csharp
private void InitFolders(TreeListNode treeListNode) {
    FileSystemItem item = treeListNode.Content as FileSystemItem;
    if (item == null) return;

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/MainWindow.xaml.cs#L176

csharp
if (e.Node.HasChildren && e.Node.Content is CodeExampleGroup) {
    e.DisplayText = (e.Node.Content as CodeExampleGroup).Name;

wpf-spreadsheet-pivot-table-api-examples/CS/SpreadsheetWPFPivotTableExamples/MainWindow.xaml.cs#L198

csharp
if (e.Node.HasChildren && e.Node.Content is CodeExampleGroup)
{

wpf-richedit-document-api/CS/DXRichEditControlAPISample/MainWindow.xaml.cs#L174

csharp
if (e.Node.HasChildren && e.Node.Content is CodeExampleGroup) {
    e.DisplayText = (e.Node.Content as CodeExampleGroup).Name;

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

vb
Do While iterator.MoveNext()
    Me.SubscribeObject(iterator.Current.Content)
    If iterator.Current.HasChildren Then

wpf-treelist-load-nodes-dynamically/VB/DynamicNodeLoading/MainWindow.xaml.vb#L49

vb
Private Sub InitFolders(ByVal treeListNode As TreeListNode)
    Dim item As FileSystemItem = TryCast(treeListNode.Content, FileSystemItem)
    If item Is Nothing Then Return

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/MainWindow.xaml.vb#L192

vb
If e.Node.HasChildren AndAlso TypeOf e.Node.Content Is CodeExampleGroup Then
    e.DisplayText = (TryCast(e.Node.Content, CodeExampleGroup)).Name

wpf-spreadsheet-pivot-table-api-examples/VB/SpreadsheetWPFPivotTableExamples/MainWindow.xaml.vb#L194

vb
If e.Node.HasChildren AndAlso TypeOf e.Node.Content Is CodeExampleGroup Then
    e.DisplayText = (TryCast(e.Node.Content, CodeExampleGroup)).Name

wpf-richedit-document-api/VB/DXRichEditControlAPISample/MainWindow.xaml.vb#L187

vb
If e.Node.HasChildren AndAlso TypeOf e.Node.Content Is CodeExampleGroup Then
    e.DisplayText = (TryCast(e.Node.Content, CodeExampleGroup)).Name

See Also

TreeListNode Class

TreeListNode Members

DevExpress.Xpf.Grid Namespace