wpf-devexpress-dot-xpf-dot-grid-dot-treelist-dot-treelistnodeautomationeventargs.md
Gets the target tree node. This is a dependency property.
Namespace : DevExpress.Xpf.Grid.TreeList
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public TreeListNode Node { get; protected set; }
Public Property Node As TreeListNode
| Type | Description |
|---|---|
| TreeListNode |
The target tree node.
|
The following code example handles the AutomationRequested event and changes values announced by a screen reader when the target node is focused:
<dxg:TreeListControl ItemsSource="{Binding Categories}">
<dxg:TreeListControl.View>
<dxg:TreeListView
dxg:GridAutomationHelper.AutomationRequested="OnAutomationRequested"/>
</dxg:TreeListControl.View>
</dxg:TreeListControl>
using DevExpress.Xpf.Grid.TreeList;
using DevExpress.Xpf.Grid.Automation;
void OnAutomationRequested(object sender, AutomationEventArgs e) {
if (e is TreeListNodeAutomationEventArgs args) {
// Example: use a property from the bound data object
if (args.Row is Category item && !string.IsNullOrEmpty(item.Title)) {
e.AutomationValue = $"Category {item.Title}";
}
}
}
See Also
TreeListNodeAutomationEventArgs Class