|
38 | 38 | <uc:ComboBoxEx |
39 | 39 | x:Name="AppLanguagesComboBox" |
40 | 40 | HorizontalAlignment="Left" |
41 | | - AutomationProperties.Name="{helpers:ResourceString Name=Language}" |
| 41 | + AutomationProperties.AutomationControlType="Custom" |
42 | 42 | ItemsSource="{x:Bind ViewModel.AppLanguages}" |
43 | 43 | SelectedIndex="{x:Bind ViewModel.SelectedAppLanguageIndex, Mode=TwoWay}"> |
44 | 44 | <uc:ComboBoxEx.ItemTemplate> |
|
60 | 60 | <uc:ComboBoxEx |
61 | 61 | x:Name="DateFormatChooser" |
62 | 62 | Grid.Column="1" |
63 | | - AutomationProperties.Name="{helpers:ResourceString Name=DateFormat}" |
| 63 | + AutomationProperties.AutomationControlType="Custom" |
64 | 64 | ItemsSource="{x:Bind ViewModel.DateFormats}" |
65 | 65 | SelectedIndex="{x:Bind ViewModel.SelectedDateTimeFormatIndex, Mode=TwoWay}"> |
66 | 66 | <uc:ComboBoxEx.ItemTemplate> |
|
88 | 88 | <wctcontrols:SettingsExpander.HeaderIcon> |
89 | 89 | <FontIcon Glyph="" /> |
90 | 90 | </wctcontrols:SettingsExpander.HeaderIcon> |
91 | | - <uc:ComboBoxEx AutomationProperties.Name="{helpers:ResourceString Name=StartupSettings}" SelectedIndex="{x:Bind ViewModel.SelectedStartupSettingIndex, Mode=OneWay}"> |
| 91 | + <uc:ComboBoxEx AutomationProperties.AutomationControlType="Custom" SelectedIndex="{x:Bind ViewModel.SelectedStartupSettingIndex, Mode=OneWay}"> |
92 | 92 | <ComboBoxItem Content="{helpers:ResourceString Name=SettingsOnStartupOpenANewTab/Content}" IsSelected="{x:Bind ViewModel.OpenNewTabPageOnStartup, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
93 | 93 |
|
94 | 94 | <ComboBoxItem Content="{helpers:ResourceString Name=SettingsOnStartupContinueWhereYouLeftOff/Content}" IsSelected="{x:Bind ViewModel.ContinueLastSessionOnStartUp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
|
158 | 158 | ToolTipService.ToolTip="{x:Bind Text}" /> |
159 | 159 | <Button |
160 | 160 | HorizontalAlignment="Right" |
161 | | - AutomationProperties.Name="{helpers:ResourceString Name=Remove}" |
162 | 161 | Click="RemoveStartupPage" |
163 | 162 | ToolTipService.ToolTip="{helpers:ResourceString Name=Remove}"> |
164 | 163 | <FontIcon FontSize="16" Glyph="" /> |
|
170 | 169 | </Grid> |
171 | 170 |
|
172 | 171 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=OpenTabInExistingInstance}"> |
173 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=OpenTabInExistingInstance}" IsOn="{x:Bind ViewModel.OpenTabInExistingInstance, Mode=TwoWay}" /> |
| 172 | + <ToggleSwitch IsOn="{x:Bind ViewModel.OpenTabInExistingInstance, Mode=TwoWay}" /> |
174 | 173 | </wctcontrols:SettingsCard> |
175 | 174 | </wctcontrols:SettingsExpander.Items> |
176 | 175 | </wctcontrols:SettingsExpander> |
|
180 | 179 | <wctcontrols:SettingsExpander.HeaderIcon> |
181 | 180 | <FontIcon Glyph="" /> |
182 | 181 | </wctcontrols:SettingsExpander.HeaderIcon> |
183 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsMultitaskingAlwaysOpenDualPane}" IsOn="{x:Bind ViewModel.AlwaysOpenDualPaneInNewTab, Mode=TwoWay}" /> |
| 182 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.AlwaysOpenDualPaneInNewTab, Mode=TwoWay}" /> |
184 | 183 | <wctcontrols:SettingsExpander.Items> |
185 | 184 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=DefaultPaneArrangement}"> |
186 | 185 | <uc:ComboBoxEx |
187 | | - AutomationProperties.Name="{helpers:ResourceString Name=DefaultPaneArrangement}" |
| 186 | + AutomationProperties.AutomationControlType="Custom" |
188 | 187 | ItemsSource="{x:Bind ViewModel.ShellPaneArrangementTypes.Values}" |
189 | 188 | SelectedItem="{x:Bind ViewModel.SelectedShellPaneArrangementType, Mode=TwoWay}" /> |
190 | 189 | </wctcontrols:SettingsCard> |
|
198 | 197 | </wctcontrols:SettingsCard.HeaderIcon> |
199 | 198 | <ToggleSwitch |
200 | 199 | x:Name="AlwaysSwitchToNewlyOpenedTab" |
201 | | - AutomationProperties.Name="{helpers:ResourceString Name=AlwaysSwitchToNewlyOpenedTab}" |
| 200 | + AutomationProperties.AutomationControlType="Custom" |
202 | 201 | IsOn="{x:Bind ViewModel.AlwaysSwitchToNewlyOpenedTab, Mode=TwoWay}" /> |
203 | 202 | </wctcontrols:SettingsCard> |
204 | 203 |
|
|
209 | 208 | </wctcontrols:SettingsExpander.HeaderIcon> |
210 | 209 | <wctcontrols:SettingsExpander.Items> |
211 | 210 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=QuickAccess}"> |
212 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=QuickAccess}" IsOn="{x:Bind ViewModel.ShowQuickAccessWidget, Mode=TwoWay}" /> |
| 211 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowQuickAccessWidget, Mode=TwoWay}" /> |
213 | 212 | </wctcontrols:SettingsCard> |
214 | 213 |
|
215 | 214 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=Drives}"> |
216 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=Drives}" IsOn="{x:Bind ViewModel.ShowDrivesWidget, Mode=TwoWay}" /> |
| 215 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowDrivesWidget, Mode=TwoWay}" /> |
217 | 216 | </wctcontrols:SettingsCard> |
218 | 217 |
|
219 | 218 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=NetworkLocations}"> |
220 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=NetworkLocations}" IsOn="{x:Bind ViewModel.ShowNetworkLocationsWidget, Mode=TwoWay}" /> |
| 219 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowNetworkLocationsWidget, Mode=TwoWay}" /> |
221 | 220 | </wctcontrols:SettingsCard> |
222 | 221 |
|
223 | 222 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=FileTags}"> |
224 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=FileTags}" IsOn="{x:Bind ViewModel.ShowFileTagsWidget, Mode=TwoWay}" /> |
| 223 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowFileTagsWidget, Mode=TwoWay}" /> |
225 | 224 | </wctcontrols:SettingsCard> |
226 | 225 |
|
227 | 226 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=RecentFiles}"> |
228 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=RecentFiles}" IsOn="{x:Bind ViewModel.ShowRecentFilesWidget, Mode=TwoWay}" /> |
| 227 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowRecentFilesWidget, Mode=TwoWay}" /> |
229 | 228 | </wctcontrols:SettingsCard> |
230 | 229 | </wctcontrols:SettingsExpander.Items> |
231 | 230 | </wctcontrols:SettingsExpander> |
|
246 | 245 | <wctcontrols:SettingsExpander.Items> |
247 | 246 | <!-- Open in new tab --> |
248 | 247 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewTab}"> |
249 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewTab}" IsOn="{x:Bind ViewModel.ShowOpenInNewTab, Mode=TwoWay}" /> |
| 248 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowOpenInNewTab, Mode=TwoWay}" /> |
250 | 249 | </wctcontrols:SettingsCard> |
251 | 250 |
|
252 | 251 | <!-- Open in new window --> |
253 | 252 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewWindow}"> |
254 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewWindow}" IsOn="{x:Bind ViewModel.ShowOpenInNewWindow, Mode=TwoWay}" /> |
| 253 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowOpenInNewWindow, Mode=TwoWay}" /> |
255 | 254 | </wctcontrols:SettingsCard> |
256 | 255 |
|
257 | 256 | <!-- Open in new pane --> |
258 | 257 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowOpenInNewPane}"> |
259 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowOpenInNewPane}" IsOn="{x:Bind ViewModel.ShowOpenInNewPane, Mode=TwoWay}" /> |
| 258 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowOpenInNewPane, Mode=TwoWay}" /> |
260 | 259 | </wctcontrols:SettingsCard> |
261 | 260 |
|
262 | 261 | <!-- Copy path --> |
263 | 262 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCopyPath}"> |
264 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCopyPath}" IsOn="{x:Bind ViewModel.ShowCopyPath, Mode=TwoWay}" /> |
| 263 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowCopyPath, Mode=TwoWay}" /> |
265 | 264 | </wctcontrols:SettingsCard> |
266 | 265 |
|
267 | 266 | <!-- Create folder with selection --> |
268 | 267 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateFolderWithSelection}"> |
269 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateFolderWithSelection}" IsOn="{x:Bind ViewModel.ShowCreateFolderWithSelection, Mode=TwoWay}" /> |
| 268 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowCreateFolderWithSelection, Mode=TwoWay}" /> |
270 | 269 | </wctcontrols:SettingsCard> |
271 | 270 |
|
272 | 271 | <!-- Create alternate data stream --> |
273 | 272 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateAlternateDataStream}"> |
274 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateAlternateDataStream}" IsOn="{x:Bind ViewModel.ShowCreateAlternateDataStream, Mode=TwoWay}" /> |
| 273 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowCreateAlternateDataStream, Mode=TwoWay}" /> |
275 | 274 | </wctcontrols:SettingsCard> |
276 | 275 |
|
277 | 276 | <!-- Create shortcut --> |
278 | 277 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCreateShortcut}"> |
279 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCreateShortcut}" IsOn="{x:Bind ViewModel.ShowCreateShortcut, Mode=TwoWay}" /> |
| 278 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowCreateShortcut, Mode=TwoWay}" /> |
280 | 279 | </wctcontrols:SettingsCard> |
281 | 280 |
|
282 | 281 | <!-- Compression options --> |
283 | 282 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowCompressionOptions}"> |
284 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowCompressionOptions}" IsOn="{x:Bind ViewModel.ShowCompressionOptions, Mode=TwoWay}" /> |
| 283 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowCompressionOptions, Mode=TwoWay}" /> |
285 | 284 | </wctcontrols:SettingsCard> |
286 | 285 |
|
287 | 286 | <!-- Flatten options --> |
288 | 287 | <!-- TODO uncomment code when feature is marked as stable --> |
289 | 288 | <!--<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowFlattenOptions}"> |
290 | | - <ToggleSwitch |
291 | | - AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}" |
| 289 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" |
| 290 | +
|
292 | 291 | IsOn="{x:Bind ViewModel.ShowFlattenOptions, Mode=TwoWay}" |
293 | 292 | /> |
294 | 293 | </wctcontrols:SettingsCard>--> |
295 | 294 |
|
296 | 295 | <!-- Send To --> |
297 | 296 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowSendToMenu}"> |
298 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowSendToMenu}" IsOn="{x:Bind ViewModel.ShowSendToMenu, Mode=TwoWay}" /> |
| 297 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowSendToMenu, Mode=TwoWay}" /> |
299 | 298 | </wctcontrols:SettingsCard> |
300 | 299 |
|
301 | 300 | <!-- Edit tags --> |
302 | 301 | <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowEditTagsMenu}"> |
303 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowEditTagsMenu}" IsOn="{x:Bind ViewModel.ShowEditTagsMenu, Mode=TwoWay}" /> |
| 302 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.ShowEditTagsMenu, Mode=TwoWay}" /> |
304 | 303 | </wctcontrols:SettingsCard> |
305 | 304 | </wctcontrols:SettingsExpander.Items> |
306 | 305 | </wctcontrols:SettingsExpander> |
|
311 | 310 | <wctcontrols:SettingsCard.HeaderIcon> |
312 | 311 | <FontIcon Glyph="" /> |
313 | 312 | </wctcontrols:SettingsCard.HeaderIcon> |
314 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsContextMenuOverflow}" IsOn="{x:Bind ViewModel.MoveShellExtensionsToSubMenu, Mode=TwoWay}" /> |
| 313 | + <ToggleSwitch AutomationProperties.AutomationControlType="Custom" IsOn="{x:Bind ViewModel.MoveShellExtensionsToSubMenu, Mode=TwoWay}" /> |
315 | 314 | </wctcontrols:SettingsCard> |
316 | 315 | </StackPanel> |
317 | 316 |
|
|
0 commit comments