2020-03-27 23:58:53 +08: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"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2020-03-27 23:58:53 +08:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
2020-03-27 23:58:53 +08:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
mc:Ignorable="d">
|
2020-08-08 03:00:48 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsPageControl
|
|
|
|
x:Uid="ShortcutGuide"
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/ShortcutGuide.png">
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2021-08-24 01:48:52 +08:00
|
|
|
<StackPanel Orientation="Vertical">
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="ShortcutGuide_Enable"
|
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsShortcutGuide.png}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="Shortcut"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<labs:SettingsCard x:Uid="ShortcutGuide_ActivationMethod">
|
|
|
|
<ComboBox
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToComboBoxIndexConverter}}">
|
|
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_CustomizedShortcut" />
|
|
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_LongPressWindowsKey" />
|
|
|
|
</ComboBox>
|
|
|
|
</labs:SettingsCard>
|
2021-09-23 21:23:22 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="Activation_Shortcut"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}"
|
|
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource ReverseBoolToVisibilityConverter}}">
|
|
|
|
<controls:ShortcutControl
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.OpenShortcutGuide, Mode=TwoWay}" />
|
|
|
|
</labs:SettingsCard>
|
2021-09-23 21:23:22 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="ShortcutGuide_PressTimeForGlobalWindowsShortcuts"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}"
|
|
|
|
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}" />
|
|
|
|
</labs:SettingsCard>
|
2022-11-18 22:22:40 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="ShortcutGuide_PressTimeForTaskbarIconShortcuts"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}"
|
|
|
|
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}" />
|
|
|
|
</labs:SettingsCard>
|
2021-09-23 21:23:22 +08:00
|
|
|
|
2022-09-21 00:59:18 +08:00
|
|
|
<InfoBar
|
2021-09-23 21:23:22 +08:00
|
|
|
x:Uid="ShortcutGuide_PressWinKeyWarning"
|
|
|
|
IsClosable="False"
|
2022-09-20 22:21:05 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior}"
|
|
|
|
IsTabStop="True"
|
|
|
|
Severity="Warning" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
2020-07-25 03:02:56 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="ShortcutGuide_Appearance_Behavior"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="ColorModeHeader"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}">
|
|
|
|
<labs:SettingsCard.Description>
|
|
|
|
<HyperlinkButton
|
|
|
|
x:Uid="Windows_Color_Settings"
|
|
|
|
Click="OpenColorsSettings_Click" />
|
|
|
|
</labs:SettingsCard.Description>
|
|
|
|
<ComboBox
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.ThemeIndex}">
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Light" />
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Default" />
|
|
|
|
</ComboBox>
|
|
|
|
</labs:SettingsCard>
|
2020-03-27 23:58:53 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard x:Uid="ShortcutGuide_OverlayOpacity">
|
|
|
|
<Slider
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
Maximum="100"
|
|
|
|
Minimum="0"
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.OverlayOpacity}" />
|
|
|
|
</labs:SettingsCard>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
2020-07-25 03:02:56 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="ExcludedApps"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<labs:SettingsExpander
|
|
|
|
x:Uid="ShortcutGuide_DisabledApps"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}"
|
|
|
|
IsExpanded="True">
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
<labs:SettingsCard
|
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
ContentAlignment="Vertical">
|
|
|
|
<TextBox
|
|
|
|
x:Uid="ShortcutGuide_DisabledApps_TextBoxControl"
|
2022-09-20 22:21:05 +08:00
|
|
|
MinWidth="240"
|
2022-11-24 02:57:09 +08: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" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
</labs:SettingsExpander>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
2020-07-25 03:02:56 +08:00
|
|
|
</StackPanel>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:PageLink
|
|
|
|
x:Uid="LearnMore_ShortcutGuide"
|
|
|
|
Link="https://aka.ms/PowerToysOverview_ShortcutGuide" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl>
|
2020-03-27 23:58:53 +08:00
|
|
|
</Page>
|