- Set AutomationProperties.Name on DataGridRow using the Remarks property

- Prevents NVDA from reading the type name (e.g. ServiceLib.Models.ProfileItemModel)
- Now screen readers announce a meaningful label per row (e.g. server name)
- Improves usability for keyboard and assistive technology users
This commit is contained in:
Reza Bakhshi Laktasaraei 2025-06-07 16:51:21 +03:30
parent ca8cbc3a16
commit 45d9104e42

View file

@ -241,6 +241,7 @@
<DataGrid.Resources>
<Style BasedOn="{StaticResource MaterialDesignDataGridRow}" TargetType="DataGridRow">
<EventSetter Event="MouseDoubleClick" Handler="LstProfiles_MouseDoubleClick" />
<Setter Property="AutomationProperties.Name" Value="{Binding Remarks}" />
</Style>
<Style BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}" TargetType="DataGridColumnHeader">
<EventSetter Event="Click" Handler="LstProfiles_ColumnHeader_Click" />