mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
Add AutomationProperties to controls in GeneralPage
Co-authored-by: niels9001 <9866362+niels9001@users.noreply.github.com>
This commit is contained in:
@@ -240,6 +240,7 @@
|
|||||||
<ComboBox
|
<ComboBox
|
||||||
x:Name="Languages_ComboBox"
|
x:Name="Languages_ComboBox"
|
||||||
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=LanguageHeader, Path=Header}"
|
||||||
DisplayMemberPath="Language"
|
DisplayMemberPath="Language"
|
||||||
ItemsSource="{Binding Languages, Mode=TwoWay}"
|
ItemsSource="{Binding Languages, Mode=TwoWay}"
|
||||||
SelectedIndex="{Binding LanguagesIndex, Mode=TwoWay}" />
|
SelectedIndex="{Binding LanguagesIndex, Mode=TwoWay}" />
|
||||||
@@ -262,7 +263,10 @@
|
|||||||
<tkcontrols:SettingsCard.Description>
|
<tkcontrols:SettingsCard.Description>
|
||||||
<HyperlinkButton x:Uid="Windows_Color_Settings" Click="OpenColorsSettings_Click" />
|
<HyperlinkButton x:Uid="Windows_Color_Settings" Click="OpenColorsSettings_Click" />
|
||||||
</tkcontrols:SettingsCard.Description>
|
</tkcontrols:SettingsCard.Description>
|
||||||
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ThemeIndex, Mode=TwoWay}">
|
<ComboBox
|
||||||
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=ColorModeHeader, Path=Header}"
|
||||||
|
SelectedIndex="{x:Bind ViewModel.ThemeIndex, Mode=TwoWay}">
|
||||||
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
|
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
|
||||||
<ComboBoxItem x:Uid="Radio_Theme_Light" />
|
<ComboBoxItem x:Uid="Radio_Theme_Light" />
|
||||||
<ComboBoxItem x:Uid="Radio_Theme_Default" />
|
<ComboBoxItem x:Uid="Radio_Theme_Default" />
|
||||||
@@ -273,12 +277,16 @@
|
|||||||
Name="GeneralPageRunAtStartUp"
|
Name="GeneralPageRunAtStartUp"
|
||||||
x:Uid="GeneralPage_RunAtStartUp"
|
x:Uid="GeneralPage_RunAtStartUp"
|
||||||
IsEnabled="{x:Bind ViewModel.IsRunAtStartupGPOManaged, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
IsEnabled="{x:Bind ViewModel.IsRunAtStartupGPOManaged, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
||||||
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.Startup, Mode=TwoWay}" />
|
<ToggleSwitch
|
||||||
|
x:Uid="ToggleSwitch"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=GeneralPageRunAtStartUp, Path=Header}"
|
||||||
|
IsOn="{x:Bind ViewModel.Startup, Mode=TwoWay}" />
|
||||||
</tkcontrols:SettingsCard>
|
</tkcontrols:SettingsCard>
|
||||||
<controls:GPOInfoControl ShowWarning="{x:Bind ViewModel.IsRunAtStartupGPOManaged, Mode=OneWay}">
|
<controls:GPOInfoControl ShowWarning="{x:Bind ViewModel.IsRunAtStartupGPOManaged, Mode=OneWay}">
|
||||||
<tkcontrols:SettingsCard x:Uid="ShowSystemTrayIcon">
|
<tkcontrols:SettingsCard x:Name="ShowSystemTrayIconCard" x:Uid="ShowSystemTrayIcon">
|
||||||
<ToggleSwitch
|
<ToggleSwitch
|
||||||
x:Uid="ShowSystemTrayIcon_ToggleSwitch"
|
x:Uid="ShowSystemTrayIcon_ToggleSwitch"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=ShowSystemTrayIconCard, Path=Header}"
|
||||||
IsOn="{x:Bind ViewModel.ShowSysTrayIcon, Mode=TwoWay}"
|
IsOn="{x:Bind ViewModel.ShowSysTrayIcon, Mode=TwoWay}"
|
||||||
Toggled="ShowSystemTrayIcon_Toggled" />
|
Toggled="ShowSystemTrayIcon_Toggled" />
|
||||||
</tkcontrols:SettingsCard>
|
</tkcontrols:SettingsCard>
|
||||||
@@ -398,12 +406,16 @@
|
|||||||
<tkcontrols:SettingsCard.HeaderIcon>
|
<tkcontrols:SettingsCard.HeaderIcon>
|
||||||
<PathIcon Data="M1859 1758q14 23 21 47t7 51q0 40-15 75t-41 61-61 41-75 15H354q-40 0-75-15t-61-41-41-61-15-75q0-27 6-51t21-47l569-992q10-14 10-34V128H640V0h768v128h-128v604q0 19 10 35l569 991zM896 732q0 53-27 99l-331 577h972l-331-577q-27-46-27-99V128H896v604zm799 1188q26 0 44-19t19-45q0-10-2-17t-8-16l-164-287H464l-165 287q-9 15-9 33 0 26 18 45t46 19h1341z" />
|
<PathIcon Data="M1859 1758q14 23 21 47t7 51q0 40-15 75t-41 61-61 41-75 15H354q-40 0-75-15t-61-41-41-61-15-75q0-27 6-51t21-47l569-992q10-14 10-34V128H640V0h768v128h-128v604q0 19 10 35l569 991zM896 732q0 53-27 99l-331 577h972l-331-577q-27-46-27-99V128H896v604zm799 1188q26 0 44-19t19-45q0-10-2-17t-8-16l-164-287H464l-165 287q-9 15-9 33 0 26 18 45t46 19h1341z" />
|
||||||
</tkcontrols:SettingsCard.HeaderIcon>
|
</tkcontrols:SettingsCard.HeaderIcon>
|
||||||
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.EnableExperimentation, Mode=TwoWay}" />
|
<ToggleSwitch
|
||||||
|
x:Uid="ToggleSwitch"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=GeneralPageEnableExperimentation, Path=Header}"
|
||||||
|
IsOn="{x:Bind ViewModel.EnableExperimentation, Mode=TwoWay}" />
|
||||||
</tkcontrols:SettingsCard>
|
</tkcontrols:SettingsCard>
|
||||||
</controls:GPOInfoControl>
|
</controls:GPOInfoControl>
|
||||||
</controls:SettingsGroup>
|
</controls:SettingsGroup>
|
||||||
<controls:SettingsGroup x:Uid="General_DiagnosticsAndFeedback">
|
<controls:SettingsGroup x:Uid="General_DiagnosticsAndFeedback">
|
||||||
<tkcontrols:SettingsExpander
|
<tkcontrols:SettingsExpander
|
||||||
|
x:Name="GeneralPageEnableDataDiagnostics"
|
||||||
x:Uid="GeneralPage_EnableDataDiagnostics"
|
x:Uid="GeneralPage_EnableDataDiagnostics"
|
||||||
HeaderIcon="{ui:FontIcon Glyph=}"
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
||||||
IsEnabled="{x:Bind ViewModel.IsDataDiagnosticsGPOManaged, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}"
|
IsEnabled="{x:Bind ViewModel.IsDataDiagnosticsGPOManaged, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}"
|
||||||
@@ -421,10 +433,16 @@
|
|||||||
NavigateUri="https://aka.ms/powertoys-data-and-privacy-documentation" />
|
NavigateUri="https://aka.ms/powertoys-data-and-privacy-documentation" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</tkcontrols:SettingsExpander.Description>
|
</tkcontrols:SettingsExpander.Description>
|
||||||
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.EnableDataDiagnostics, Mode=TwoWay}" />
|
<ToggleSwitch
|
||||||
|
x:Uid="ToggleSwitch"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=GeneralPageEnableDataDiagnostics, Path=Header}"
|
||||||
|
IsOn="{x:Bind ViewModel.EnableDataDiagnostics, Mode=TwoWay}" />
|
||||||
<tkcontrols:SettingsExpander.Items>
|
<tkcontrols:SettingsExpander.Items>
|
||||||
<tkcontrols:SettingsCard x:Uid="GeneralPage_EnableViewDiagnosticData" IsEnabled="{x:Bind ViewModel.EnableDataDiagnostics, Mode=TwoWay}">
|
<tkcontrols:SettingsCard x:Name="GeneralPageEnableViewDiagnosticData" x:Uid="GeneralPage_EnableViewDiagnosticData" IsEnabled="{x:Bind ViewModel.EnableDataDiagnostics, Mode=TwoWay}">
|
||||||
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.EnableViewDataDiagnostics, Mode=TwoWay}" />
|
<ToggleSwitch
|
||||||
|
x:Uid="ToggleSwitch"
|
||||||
|
AutomationProperties.Name="{Binding ElementName=GeneralPageEnableViewDiagnosticData, Path=Header}"
|
||||||
|
IsOn="{x:Bind ViewModel.EnableViewDataDiagnostics, Mode=TwoWay}" />
|
||||||
<tkcontrols:SettingsCard.Description>
|
<tkcontrols:SettingsCard.Description>
|
||||||
<StackPanel Orientation="Vertical">
|
<StackPanel Orientation="Vertical">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
|||||||
Reference in New Issue
Block a user