From b62cfd9d4bd7b0ab3ebcce7ee2a3567284fd001a Mon Sep 17 00:00:00 2001
From: Reza Bakhshi Laktasaraei
<74649066+rezabakhshilaktasaraei@users.noreply.github.com>
Date: Sun, 27 Apr 2025 03:35:52 +0330
Subject: [PATCH] Improve accessibility for ComboBoxes in StatusBarView.xaml
Added ItemContainerStyle to cmbRoutings2 and cmbRoutings to bind AutomationProperties.Name to Remarks, ensuring screen readers announce the correct values instead of the default object type.
---
v2rayN/v2rayN/Views/StatusBarView.xaml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/v2rayN/v2rayN/Views/StatusBarView.xaml b/v2rayN/v2rayN/Views/StatusBarView.xaml
index 2cb2c18b..b0e7e62d 100644
--- a/v2rayN/v2rayN/Views/StatusBarView.xaml
+++ b/v2rayN/v2rayN/Views/StatusBarView.xaml
@@ -91,7 +91,13 @@
DisplayMemberPath="Remarks"
FontSize="{DynamicResource StdFontSize}"
Style="{StaticResource MaterialDesignFloatingHintComboBox}"
- AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"/>
+ AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}">
+
+
+
+
@@ -173,7 +179,13 @@
DisplayMemberPath="Remarks"
FontSize="{DynamicResource StdFontSize}"
Style="{StaticResource MaterialDesignFilledComboBox}"
- AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"/>
+ AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}">
+
+
+
+