TreeListNodeAutomationEventArgs.Row Property
Gets a data item bound to the target Node.
Namespace: DevExpress.Xpf.Grid.TreeList
Assembly: DevExpress.Xpf.Grid.v25.2.dll
Declaration
Property Value
| Type | Description |
|---|---|
| Object | A data item bound to the target Node. |
Remarks
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