|
38 | 38 | <uc:ComboBoxEx |
39 | 39 | x:Name="AppLanguagesComboBox" |
40 | 40 | HorizontalAlignment="Left" |
| 41 | + AutomationProperties.AutomationControlType="ComboBox" |
41 | 42 | AutomationProperties.Name="{helpers:ResourceString Name=Language}" |
42 | 43 | ItemsSource="{x:Bind ViewModel.AppLanguages}" |
43 | 44 | SelectedIndex="{x:Bind ViewModel.SelectedAppLanguageIndex, Mode=TwoWay}"> |
|
60 | 61 | <uc:ComboBoxEx |
61 | 62 | x:Name="DateFormatChooser" |
62 | 63 | Grid.Column="1" |
| 64 | + AutomationProperties.AutomationControlType="ComboBox" |
63 | 65 | AutomationProperties.Name="{helpers:ResourceString Name=DateFormat}" |
64 | 66 | ItemsSource="{x:Bind ViewModel.DateFormats}" |
65 | 67 | SelectedIndex="{x:Bind ViewModel.SelectedDateTimeFormatIndex, Mode=TwoWay}"> |
|
88 | 90 | <wctcontrols:SettingsExpander.HeaderIcon> |
89 | 91 | <FontIcon Glyph="" /> |
90 | 92 | </wctcontrols:SettingsExpander.HeaderIcon> |
91 | | - <uc:ComboBoxEx AutomationProperties.Name="{helpers:ResourceString Name=StartupSettings}" SelectedIndex="{x:Bind ViewModel.SelectedStartupSettingIndex, Mode=OneWay}"> |
| 93 | + <uc:ComboBoxEx |
| 94 | + AutomationProperties.AutomationControlType="ComboBox" |
| 95 | + AutomationProperties.Name="{helpers:ResourceString Name=StartupSettings}" |
| 96 | + SelectedIndex="{x:Bind ViewModel.SelectedStartupSettingIndex, Mode=OneWay}"> |
92 | 97 | <ComboBoxItem Content="{helpers:ResourceString Name=SettingsOnStartupOpenANewTab/Content}" IsSelected="{x:Bind ViewModel.OpenNewTabPageOnStartup, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
93 | 98 |
|
94 | 99 | <ComboBoxItem Content="{helpers:ResourceString Name=SettingsOnStartupContinueWhereYouLeftOff/Content}" IsSelected="{x:Bind ViewModel.ContinueLastSessionOnStartUp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
|
158 | 163 | ToolTipService.ToolTip="{x:Bind Text}" /> |
159 | 164 | <Button |
160 | 165 | HorizontalAlignment="Right" |
| 166 | + AutomationProperties.AutomationControlType="Button" |
161 | 167 | AutomationProperties.Name="{helpers:ResourceString Name=Remove}" |
162 | 168 | Click="RemoveStartupPage" |
163 | 169 | ToolTipService.ToolTip="{helpers:ResourceString Name=Remove}"> |
|
170 | 176 | </Grid> |
171 | 177 |
|
172 | 178 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=OpenTabInExistingInstance}"> |
173 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=OpenTabInExistingInstance}" IsOn="{x:Bind ViewModel.OpenTabInExistingInstance, Mode=TwoWay}" /> |
| 179 | + <ToggleSwitch |
| 180 | + AutomationProperties.AutomationControlType="Custom" |
| 181 | + AutomationProperties.Name="{helpers:ResourceString Name=OpenTabInExistingInstance}" |
| 182 | + IsOn="{x:Bind ViewModel.OpenTabInExistingInstance, Mode=TwoWay}" /> |
174 | 183 | </wctcontrols:SettingsCard> |
175 | 184 | </wctcontrols:SettingsExpander.Items> |
176 | 185 | </wctcontrols:SettingsExpander> |
|
180 | 189 | <wctcontrols:SettingsExpander.HeaderIcon> |
181 | 190 | <FontIcon Glyph="" /> |
182 | 191 | </wctcontrols:SettingsExpander.HeaderIcon> |
183 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsMultitaskingAlwaysOpenDualPane}" IsOn="{x:Bind ViewModel.AlwaysOpenDualPaneInNewTab, Mode=TwoWay}" /> |
| 192 | + <ToggleSwitch |
| 193 | + AutomationProperties.AutomationControlType="Thumb" |
| 194 | + AutomationProperties.Name="{helpers:ResourceString Name=SettingsMultitaskingAlwaysOpenDualPane}" |
| 195 | + IsOn="{x:Bind ViewModel.AlwaysOpenDualPaneInNewTab, Mode=TwoWay}" /> |
184 | 196 | <wctcontrols:SettingsExpander.Items> |
185 | 197 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=DefaultPaneArrangement}"> |
186 | 198 | <uc:ComboBoxEx |
| 199 | + AutomationProperties.AutomationControlType="ComboBox" |
187 | 200 | AutomationProperties.Name="{helpers:ResourceString Name=DefaultPaneArrangement}" |
188 | 201 | ItemsSource="{x:Bind ViewModel.ShellPaneArrangementTypes.Values}" |
189 | 202 | SelectedItem="{x:Bind ViewModel.SelectedShellPaneArrangementType, Mode=TwoWay}" /> |
|
198 | 211 | </wctcontrols:SettingsCard.HeaderIcon> |
199 | 212 | <ToggleSwitch |
200 | 213 | x:Name="AlwaysSwitchToNewlyOpenedTab" |
| 214 | + AutomationProperties.AutomationControlType="CheckBox" |
201 | 215 | AutomationProperties.Name="{helpers:ResourceString Name=AlwaysSwitchToNewlyOpenedTab}" |
202 | 216 | IsOn="{x:Bind ViewModel.AlwaysSwitchToNewlyOpenedTab, Mode=TwoWay}" /> |
203 | 217 | </wctcontrols:SettingsCard> |
|
209 | 223 | </wctcontrols:SettingsExpander.HeaderIcon> |
210 | 224 | <wctcontrols:SettingsExpander.Items> |
211 | 225 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=QuickAccess}"> |
212 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=QuickAccess}" IsOn="{x:Bind ViewModel.ShowQuickAccessWidget, Mode=TwoWay}" /> |
| 226 | + <ToggleSwitch |
| 227 | + AutomationProperties.AutomationControlType="Custom" |
| 228 | + AutomationProperties.Name="{helpers:ResourceString Name=QuickAccess}" |
| 229 | + IsOn="{x:Bind ViewModel.ShowQuickAccessWidget, Mode=TwoWay}" /> |
213 | 230 | </wctcontrols:SettingsCard> |
214 | 231 |
|
215 | 232 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=Drives}"> |
216 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=Drives}" IsOn="{x:Bind ViewModel.ShowDrivesWidget, Mode=TwoWay}" /> |
| 233 | + <ToggleSwitch |
| 234 | + AutomationProperties.AutomationControlType="Custom" |
| 235 | + AutomationProperties.Name="{helpers:ResourceString Name=Drives}" |
| 236 | + IsOn="{x:Bind ViewModel.ShowDrivesWidget, Mode=TwoWay}" /> |
217 | 237 | </wctcontrols:SettingsCard> |
218 | 238 |
|
219 | 239 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=NetworkLocations}"> |
220 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=NetworkLocations}" IsOn="{x:Bind ViewModel.ShowNetworkLocationsWidget, Mode=TwoWay}" /> |
| 240 | + <ToggleSwitch |
| 241 | + AutomationProperties.AutomationControlType="Custom" |
| 242 | + AutomationProperties.Name="{helpers:ResourceString Name=NetworkLocations}" |
| 243 | + IsOn="{x:Bind ViewModel.ShowNetworkLocationsWidget, Mode=TwoWay}" /> |
221 | 244 | </wctcontrols:SettingsCard> |
222 | 245 |
|
223 | 246 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=FileTags}"> |
224 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=FileTags}" IsOn="{x:Bind ViewModel.ShowFileTagsWidget, Mode=TwoWay}" /> |
| 247 | + <ToggleSwitch |
| 248 | + AutomationProperties.AutomationControlType="Custom" |
| 249 | + AutomationProperties.Name="{helpers:ResourceString Name=FileTags}" |
| 250 | + IsOn="{x:Bind ViewModel.ShowFileTagsWidget, Mode=TwoWay}" /> |
225 | 251 | </wctcontrols:SettingsCard> |
226 | 252 |
|
227 | 253 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=RecentFiles}"> |
228 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=RecentFiles}" IsOn="{x:Bind ViewModel.ShowRecentFilesWidget, Mode=TwoWay}" /> |
| 254 | + <ToggleSwitch |
| 255 | + AutomationProperties.AutomationControlType="Custom" |
| 256 | + AutomationProperties.Name="{helpers:ResourceString Name=RecentFiles}" |
| 257 | + IsOn="{x:Bind ViewModel.ShowRecentFilesWidget, Mode=TwoWay}" /> |
229 | 258 | </wctcontrols:SettingsCard> |
230 | 259 | </wctcontrols:SettingsExpander.Items> |
231 | 260 | </wctcontrols:SettingsExpander> |
|
246 | 275 | <wctcontrols:SettingsExpander.Items> |
247 | 276 | <!-- Open in new tab --> |
248 | 277 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewTab}"> |
249 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewTab}" IsOn="{x:Bind ViewModel.ShowOpenInNewTab, Mode=TwoWay}" /> |
| 278 | + <ToggleSwitch |
| 279 | + AutomationProperties.AutomationControlType="Custom" |
| 280 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewTab}" |
| 281 | + IsOn="{x:Bind ViewModel.ShowOpenInNewTab, Mode=TwoWay}" /> |
250 | 282 | </wctcontrols:SettingsCard> |
251 | 283 |
|
252 | 284 | <!-- Open in new window --> |
253 | 285 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewWindow}"> |
254 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewWindow}" IsOn="{x:Bind ViewModel.ShowOpenInNewWindow, Mode=TwoWay}" /> |
| 286 | + <ToggleSwitch |
| 287 | + AutomationProperties.AutomationControlType="Custom" |
| 288 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewWindow}" |
| 289 | + IsOn="{x:Bind ViewModel.ShowOpenInNewWindow, Mode=TwoWay}" /> |
255 | 290 | </wctcontrols:SettingsCard> |
256 | 291 |
|
257 | 292 | <!-- Open in new pane --> |
258 | 293 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewPane}"> |
259 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewPane}" IsOn="{x:Bind ViewModel.ShowOpenInNewPane, Mode=TwoWay}" /> |
| 294 | + <ToggleSwitch |
| 295 | + AutomationProperties.AutomationControlType="Custom" |
| 296 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewPane}" |
| 297 | + IsOn="{x:Bind ViewModel.ShowOpenInNewPane, Mode=TwoWay}" /> |
260 | 298 | </wctcontrols:SettingsCard> |
261 | 299 |
|
262 | 300 | <!-- Copy path --> |
263 | 301 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCopyPath}"> |
264 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCopyPath}" IsOn="{x:Bind ViewModel.ShowCopyPath, Mode=TwoWay}" /> |
| 302 | + <ToggleSwitch |
| 303 | + AutomationProperties.AutomationControlType="Custom" |
| 304 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowCopyPath}" |
| 305 | + IsOn="{x:Bind ViewModel.ShowCopyPath, Mode=TwoWay}" /> |
265 | 306 | </wctcontrols:SettingsCard> |
266 | 307 |
|
267 | 308 | <!-- Create folder with selection --> |
268 | 309 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateFolderWithSelection}"> |
269 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateFolderWithSelection}" IsOn="{x:Bind ViewModel.ShowCreateFolderWithSelection, Mode=TwoWay}" /> |
| 310 | + <ToggleSwitch |
| 311 | + AutomationProperties.AutomationControlType="Custom" |
| 312 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateFolderWithSelection}" |
| 313 | + IsOn="{x:Bind ViewModel.ShowCreateFolderWithSelection, Mode=TwoWay}" /> |
270 | 314 | </wctcontrols:SettingsCard> |
271 | 315 |
|
272 | 316 | <!-- Create alternate data stream --> |
273 | 317 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateAlternateDataStream}"> |
274 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateAlternateDataStream}" IsOn="{x:Bind ViewModel.ShowCreateAlternateDataStream, Mode=TwoWay}" /> |
| 318 | + <ToggleSwitch |
| 319 | + AutomationProperties.AutomationControlType="Custom" |
| 320 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateAlternateDataStream}" |
| 321 | + IsOn="{x:Bind ViewModel.ShowCreateAlternateDataStream, Mode=TwoWay}" /> |
275 | 322 | </wctcontrols:SettingsCard> |
276 | 323 |
|
277 | 324 | <!-- Create shortcut --> |
278 | 325 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateShortcut}"> |
279 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateShortcut}" IsOn="{x:Bind ViewModel.ShowCreateShortcut, Mode=TwoWay}" /> |
| 326 | + <ToggleSwitch |
| 327 | + AutomationProperties.AutomationControlType="Custom" |
| 328 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateShortcut}" |
| 329 | + IsOn="{x:Bind ViewModel.ShowCreateShortcut, Mode=TwoWay}" /> |
280 | 330 | </wctcontrols:SettingsCard> |
281 | 331 |
|
282 | 332 | <!-- Compression options --> |
283 | 333 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCompressionOptions}"> |
284 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCompressionOptions}" IsOn="{x:Bind ViewModel.ShowCompressionOptions, Mode=TwoWay}" /> |
| 334 | + <ToggleSwitch |
| 335 | + AutomationProperties.AutomationControlType="Custom" |
| 336 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowCompressionOptions}" |
| 337 | + IsOn="{x:Bind ViewModel.ShowCompressionOptions, Mode=TwoWay}" /> |
285 | 338 | </wctcontrols:SettingsCard> |
286 | 339 |
|
287 | 340 | <!-- Flatten options --> |
288 | 341 | <!-- TODO uncomment code when feature is marked as stable --> |
289 | 342 | <!--<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowFlattenOptions}"> |
290 | 343 | <ToggleSwitch |
291 | | - AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}" |
| 344 | + AutomationProperties.AutomationControlType="Custom" |
| 345 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}" |
292 | 346 | IsOn="{x:Bind ViewModel.ShowFlattenOptions, Mode=TwoWay}" |
293 | 347 | /> |
294 | 348 | </wctcontrols:SettingsCard>--> |
295 | 349 |
|
296 | 350 | <!-- Send To --> |
297 | 351 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowSendToMenu}"> |
298 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowSendToMenu}" IsOn="{x:Bind ViewModel.ShowSendToMenu, Mode=TwoWay}" /> |
| 352 | + <ToggleSwitch |
| 353 | + AutomationProperties.AutomationControlType="Custom" |
| 354 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowSendToMenu}" |
| 355 | + IsOn="{x:Bind ViewModel.ShowSendToMenu, Mode=TwoWay}" /> |
299 | 356 | </wctcontrols:SettingsCard> |
300 | 357 |
|
301 | 358 | <!-- Edit tags --> |
302 | 359 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowEditTagsMenu}"> |
303 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowEditTagsMenu}" IsOn="{x:Bind ViewModel.ShowEditTagsMenu, Mode=TwoWay}" /> |
| 360 | + <ToggleSwitch |
| 361 | + AutomationProperties.AutomationControlType="Custom" |
| 362 | + AutomationProperties.Name="{helpers:ResourceString Name=ShowEditTagsMenu}" |
| 363 | + IsOn="{x:Bind ViewModel.ShowEditTagsMenu, Mode=TwoWay}" /> |
304 | 364 | </wctcontrols:SettingsCard> |
305 | 365 | </wctcontrols:SettingsExpander.Items> |
306 | 366 | </wctcontrols:SettingsExpander> |
|
311 | 371 | <wctcontrols:SettingsCard.HeaderIcon> |
312 | 372 | <FontIcon Glyph="" /> |
313 | 373 | </wctcontrols:SettingsCard.HeaderIcon> |
314 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsContextMenuOverflow}" IsOn="{x:Bind ViewModel.MoveShellExtensionsToSubMenu, Mode=TwoWay}" /> |
| 374 | + <ToggleSwitch |
| 375 | + AutomationProperties.AutomationControlType="Custom" |
| 376 | + AutomationProperties.Name="{helpers:ResourceString Name=SettingsContextMenuOverflow}" |
| 377 | + IsOn="{x:Bind ViewModel.MoveShellExtensionsToSubMenu, Mode=TwoWay}" /> |
315 | 378 | </wctcontrols:SettingsCard> |
316 | 379 | </StackPanel> |
317 | 380 |
|
|
0 commit comments