wpf-devexpress-dot-xpf-dot-grid-dot-treelistnode-706ad136.md
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
public override object Content { get; set; }
Public Overrides Property Content As Object
| Type | Description |
|---|---|
| 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.
while(iterator.MoveNext()) {
this.SubscribeObject(iterator.Current.Content);
if(iterator.Current.HasChildren) {
wpf-treelist-load-nodes-dynamically/CS/DynamicNodeLoading/MainWindow.xaml.cs#L44
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
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
if (e.Node.HasChildren && e.Node.Content is CodeExampleGroup)
{
wpf-richedit-document-api/CS/DXRichEditControlAPISample/MainWindow.xaml.cs#L174
if (e.Node.HasChildren && e.Node.Content is CodeExampleGroup) {
e.DisplayText = (e.Node.Content as CodeExampleGroup).Name;
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
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
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
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
If e.Node.HasChildren AndAlso TypeOf e.Node.Content Is CodeExampleGroup Then
e.DisplayText = (TryCast(e.Node.Content, CodeExampleGroup)).Name
See Also