Compare commits

...

2 commits

Author SHA1 Message Date
Reza Bakhshi Laktasaraei
d77df333b6 - Moved KeyboardNavigation.TabNavigation="Once" from ProfilesView.xaml into App.xaml style definition
- Updated DefDataGrid style in App.xaml to include the TabNavigation setting
- Ensures consistent keyboard navigation behavior across all DataGrids in the application
- Simplifies view code and improves accessibility maintainability
2025-06-11 02:22:42 +03:30
Reza Bakhshi Laktasaraei
e9f62913ca - Updated App.xaml to enhance accessibility for ListBoxItem elements
- Set AutomationProperties.Name in MyChipListBoxItem style using the Remarks property
- This ensures screen readers like NVDA announce meaningful content instead of the class name
- Applies globally to all ListBoxes using the MyChipListBoxItem style
2025-06-08 10:55:33 +03:30
2 changed files with 3 additions and 2 deletions

View file

@ -149,6 +149,7 @@
BasedOn="{StaticResource MaterialDesignDataGrid}"
TargetType="{x:Type DataGrid}">
<Setter Property="FontSize" Value="{DynamicResource StdFontSize}" />
<Setter Property="KeyboardNavigation.TabNavigation" Value="Once" />
</Style>
<Style
x:Key="DefTextBox"
@ -174,6 +175,7 @@
BasedOn="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBoxItem}"
TargetType="{x:Type ListBoxItem}">
<Setter Property="Margin" Value="-2,0" />
<Setter Property="AutomationProperties.Name" Value="{Binding Remarks}" />
</Style>
<Style
x:Key="MyOutlinedTextComboBox"

View file

@ -91,8 +91,7 @@
HeadersVisibility="All"
IsReadOnly="True"
RowHeaderWidth="40"
Style="{StaticResource DefDataGrid}"
KeyboardNavigation.TabNavigation="Once">
Style="{StaticResource DefDataGrid}">
<DataGrid.InputBindings>
<KeyBinding Command="ApplicationCommands.NotACommand" Gesture="Ctrl+C" />
<KeyBinding Command="ApplicationCommands.NotACommand" Gesture="Ctrl+V" />