|
61 | 61 | x:Name="togEnableTun"
|
62 | 62 | Margin="{StaticResource Margin4}"
|
63 | 63 | HorizontalAlignment="Left"
|
64 |
| - VerticalAlignment="Center" /> |
| 64 | + VerticalAlignment="Center" AutomationProperties.Name="{x:Static resx:ResUI.TbEnableTunAs}" /> |
65 | 65 | </StackPanel>
|
66 | 66 |
|
67 | 67 | <StackPanel
|
|
75 | 75 | Margin="{StaticResource MarginLeftRight8}"
|
76 | 76 | materialDesign:HintAssist.Hint="{x:Static resx:ResUI.menuSystemproxy}"
|
77 | 77 | FontSize="{DynamicResource StdFontSize}"
|
78 |
| - Style="{StaticResource MaterialDesignFloatingHintComboBox}"> |
| 78 | + Style="{StaticResource MaterialDesignFloatingHintComboBox}" |
| 79 | + AutomationProperties.Name="{x:Static resx:ResUI.menuSystemproxy}"> |
79 | 80 | <ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxyClear}" />
|
80 | 81 | <ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxySet}" />
|
81 | 82 | <ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxyNothing}" />
|
|
89 | 90 | materialDesign:HintAssist.Hint="{x:Static resx:ResUI.menuRouting}"
|
90 | 91 | DisplayMemberPath="Remarks"
|
91 | 92 | FontSize="{DynamicResource StdFontSize}"
|
92 |
| - Style="{StaticResource MaterialDesignFloatingHintComboBox}" /> |
| 93 | + Style="{StaticResource MaterialDesignFloatingHintComboBox}" |
| 94 | + AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"/> |
93 | 95 | </StackPanel>
|
94 | 96 |
|
95 | 97 | <StackPanel Margin="{StaticResource MarginLeftRight8}" VerticalAlignment="Center">
|
|
107 | 109 | ToolTipText="v2rayN">
|
108 | 110 | <tb:TaskbarIcon.ContextMenu>
|
109 | 111 | <ContextMenu Style="{StaticResource DefContextMenu}">
|
110 |
| - <MenuItem x:Name="menuSystemProxyClear" Height="{StaticResource MenuItemHeight}"> |
| 112 | + <MenuItem x:Name="menuSystemProxyClear" Height="{StaticResource MenuItemHeight}" |
| 113 | + AutomationProperties.Name="{x:Static resx:ResUI.menuSystemProxyClear}"> |
111 | 114 | <MenuItem.Header>
|
112 | 115 | <StackPanel Orientation="Horizontal">
|
113 | 116 | <materialDesign:PackIcon
|
|
119 | 122 | </StackPanel>
|
120 | 123 | </MenuItem.Header>
|
121 | 124 | </MenuItem>
|
122 |
| - <MenuItem x:Name="menuSystemProxySet" Height="{StaticResource MenuItemHeight}"> |
| 125 | + <MenuItem x:Name="menuSystemProxySet" Height="{StaticResource MenuItemHeight}" |
| 126 | + AutomationProperties.Name="{x:Static resx:ResUI.menuSystemProxySet}"> |
123 | 127 | <MenuItem.Header>
|
124 | 128 | <StackPanel Orientation="Horizontal">
|
125 | 129 | <materialDesign:PackIcon
|
|
131 | 135 | </StackPanel>
|
132 | 136 | </MenuItem.Header>
|
133 | 137 | </MenuItem>
|
134 |
| - <MenuItem x:Name="menuSystemProxyNothing" Height="{StaticResource MenuItemHeight}"> |
| 138 | + <MenuItem x:Name="menuSystemProxyNothing" Height="{StaticResource MenuItemHeight}" |
| 139 | + AutomationProperties.Name="{x:Static resx:ResUI.menuSystemProxyNothing}"> |
135 | 140 | <MenuItem.Header>
|
136 | 141 | <StackPanel Orientation="Horizontal">
|
137 | 142 | <materialDesign:PackIcon
|
|
143 | 148 | </StackPanel>
|
144 | 149 | </MenuItem.Header>
|
145 | 150 | </MenuItem>
|
146 |
| - <MenuItem x:Name="menuSystemProxyPac" Height="{StaticResource MenuItemHeight}"> |
| 151 | + <MenuItem x:Name="menuSystemProxyPac" Height="{StaticResource MenuItemHeight}" |
| 152 | + AutomationProperties.Name="{x:Static resx:ResUI.menuSystemProxyPac}"> |
147 | 153 | <MenuItem.Header>
|
148 | 154 | <StackPanel Orientation="Horizontal">
|
149 | 155 | <materialDesign:PackIcon
|
|
156 | 162 | </MenuItem.Header>
|
157 | 163 | </MenuItem>
|
158 | 164 | <Separator x:Name="sepRoutings" />
|
159 |
| - <MenuItem x:Name="menuRoutings" Height="Auto"> |
| 165 | + <MenuItem x:Name="menuRoutings" Height="Auto" |
| 166 | + AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"> |
160 | 167 | <MenuItem.Header>
|
161 | 168 | <DockPanel>
|
162 | 169 | <ComboBox
|
|
165 | 172 | materialDesign:HintAssist.Hint="{x:Static resx:ResUI.menuRouting}"
|
166 | 173 | DisplayMemberPath="Remarks"
|
167 | 174 | FontSize="{DynamicResource StdFontSize}"
|
168 |
| - Style="{StaticResource MaterialDesignFilledComboBox}" /> |
| 175 | + Style="{StaticResource MaterialDesignFilledComboBox}" |
| 176 | + AutomationProperties.Name="{x:Static resx:ResUI.menuRouting}"/> |
169 | 177 | </DockPanel>
|
170 | 178 | </MenuItem.Header>
|
171 | 179 | </MenuItem>
|
172 |
| - <MenuItem Height="Auto"> |
| 180 | + <MenuItem Height="Auto" AutomationProperties.Name="{x:Static resx:ResUI.menuServers}"> |
173 | 181 | <MenuItem.Header>
|
174 | 182 | <DockPanel>
|
175 | 183 | <ComboBox
|
|
178 | 186 | materialDesign:HintAssist.Hint="{x:Static resx:ResUI.menuServers}"
|
179 | 187 | DisplayMemberPath="Text"
|
180 | 188 | FontSize="{DynamicResource StdFontSize}"
|
181 |
| - Style="{StaticResource MaterialDesignFilledComboBox}" /> |
| 189 | + Style="{StaticResource MaterialDesignFilledComboBox}" |
| 190 | + AutomationProperties.Name="{x:Static resx:ResUI.menuServers}"/> |
182 | 191 | </DockPanel>
|
183 | 192 | </MenuItem.Header>
|
184 | 193 | </MenuItem>
|
|
0 commit comments