From 202793ba56e7ae8c402ce917e340127be70dae35 Mon Sep 17 00:00:00 2001
From: Reza Bakhshi Laktasaraei
<74649066+rezabakhshilaktasaraei@users.noreply.github.com>
Date: Sat, 12 Apr 2025 10:25:24 +0330
Subject: [PATCH] Improve accessibility in MsgView.xaml
- Added AutomationProperties.Name to cmbMsgFilter, btnCopy, btnClear,
togAutoRefresh, and togScrollToEnd to fix NameNotNull errors reported
by Accessibility Checker.
- Ensures better screen reader support (e.g., NVDA) for these elements.
---
v2rayN/v2rayN/Views/MsgView.xaml | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/v2rayN/v2rayN/Views/MsgView.xaml b/v2rayN/v2rayN/Views/MsgView.xaml
index fa25b217..a25698a2 100644
--- a/v2rayN/v2rayN/Views/MsgView.xaml
+++ b/v2rayN/v2rayN/Views/MsgView.xaml
@@ -27,14 +27,16 @@
materialDesign:HintAssist.Hint="{x:Static resx:ResUI.MsgFilterTitle}"
materialDesign:TextFieldAssist.HasClearButton="True"
IsEditable="True"
- Style="{StaticResource DefComboBox}" />
+ Style="{StaticResource DefComboBox}"
+ AutomationProperties.Name="{x:Static resx:ResUI.MsgFilterTitle}" />
+ IsChecked="True"
+ AutomationProperties.Name="{x:Static resx:ResUI.TbAutoRefresh}" />
+ IsChecked="True"
+ AutomationProperties.Name="{x:Static resx:ResUI.TbAutoScrollToEnd}" />
-
\ No newline at end of file
+