2020-03-27 16:58:53 +01:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.ShortcutGuidePage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
|
|
|
|
|
xmlns:custom="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2020-03-27 16:58:53 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2022-11-23 19:57:09 +01:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2020-08-07 21:00:48 +02:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsPageControl x:Uid="ShortcutGuide" ModuleImageSource="ms-appx:///Assets/Settings/Modules/ShortcutGuide.png">
|
|
|
|
|
<custom:SettingsPageControl.ModuleContent>
|
|
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
|
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="ShortcutGuide_Enable"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsShortcutGuide.png}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}" />
|
|
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsGroup x:Uid="Shortcut" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
<controls:SettingsCard x:Uid="ShortcutGuide_ActivationMethod">
|
|
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToComboBoxIndexConverter}}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_CustomizedShortcut" />
|
|
|
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_LongPressWindowsKey" />
|
|
|
|
|
</ComboBox>
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2021-09-23 14:23:22 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="Activation_Shortcut"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource ReverseBoolToVisibilityConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.OpenShortcutGuide, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2021-09-23 14:23:22 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="ShortcutGuide_PressTimeForGlobalWindowsShortcuts"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
|
|
|
|
Minimum="100"
|
|
|
|
|
SmallChange="50"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.PressTime}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2022-11-18 22:22:40 +08:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="ShortcutGuide_PressTimeForTaskbarIconShortcuts"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
|
|
|
|
Minimum="100"
|
|
|
|
|
SmallChange="50"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.DelayTime}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2021-09-23 14:23:22 +01:00
|
|
|
|
2022-09-20 18:59:18 +02:00
|
|
|
<InfoBar
|
2021-09-23 14:23:22 +01:00
|
|
|
x:Uid="ShortcutGuide_PressWinKeyWarning"
|
|
|
|
|
IsClosable="False"
|
2022-09-20 16:21:05 +02:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior}"
|
|
|
|
|
IsTabStop="True"
|
|
|
|
|
Severity="Warning" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</custom:SettingsGroup>
|
2020-07-24 21:02:56 +02:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsGroup x:Uid="Appearance_Behavior" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
<controls:SettingsCard x:Uid="ColorModeHeader" HeaderIcon="{ui:FontIcon Glyph=}">
|
|
|
|
|
<controls:SettingsCard.Description>
|
|
|
|
|
<HyperlinkButton x:Uid="Windows_Color_Settings" Click="OpenColorsSettings_Click" />
|
|
|
|
|
</controls:SettingsCard.Description>
|
|
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.ThemeIndex}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
|
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Light" />
|
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Default" />
|
|
|
|
|
</ComboBox>
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="ShortcutGuide_OverlayOpacity">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.OverlayOpacity}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</custom:SettingsGroup>
|
2020-07-24 21:02:56 +02:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsGroup x:Uid="ExcludedApps" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
<controls:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="ShortcutGuide_DisabledApps"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard HorizontalContentAlignment="Stretch" ContentAlignment="Vertical">
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBox
|
|
|
|
|
x:Uid="ShortcutGuide_DisabledApps_TextBoxControl"
|
2022-09-20 16:21:05 +02:00
|
|
|
MinWidth="240"
|
2022-11-23 19:57:09 +01:00
|
|
|
MinHeight="160"
|
|
|
|
|
AcceptsReturn="True"
|
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.DisabledApps, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
TextWrapping="Wrap" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
|
|
|
|
</custom:SettingsGroup>
|
2020-07-24 21:02:56 +02:00
|
|
|
</StackPanel>
|
2023-09-14 18:41:31 +02:00
|
|
|
</custom:SettingsPageControl.ModuleContent>
|
|
|
|
|
<custom:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<custom:PageLink x:Uid="LearnMore_ShortcutGuide" Link="https://aka.ms/PowerToysOverview_ShortcutGuide" />
|
|
|
|
|
</custom:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
</custom:SettingsPageControl>
|
2020-03-27 16:58:53 +01:00
|
|
|
</Page>
|