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"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2021-07-05 22:25:23 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-04-20 04:00:28 +08:00
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
2020-03-27 23:58:53 +08:00
|
|
|
mc:Ignorable="d"
|
2020-10-29 02:10:08 +08:00
|
|
|
AutomationProperties.LandmarkType="Main">
|
2020-03-27 23:58:53 +08:00
|
|
|
|
2020-05-29 21:11:52 +08:00
|
|
|
<Page.Resources>
|
|
|
|
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
2022-10-26 21:02:31 +08:00
|
|
|
<converters:BoolNegationConverter x:Key="BoolNegationConverter"/>
|
2021-09-23 21:23:22 +08:00
|
|
|
<converters:BoolToObjectConverter x:Key="BoolToComboBoxIndexConverter" TrueValue="1" FalseValue="0"/>
|
|
|
|
<converters:BoolToVisibilityConverter x:Key="TrueToVisibleConverter" TrueValue="Visible" FalseValue="Collapsed"/>
|
|
|
|
<converters:BoolToVisibilityConverter x:Key="FalseToVisibleConverter" TrueValue="Collapsed" FalseValue="Visible"/>
|
2020-05-29 21:11:52 +08:00
|
|
|
</Page.Resources>
|
2020-08-08 03:00:48 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsPageControl x:Uid="ShortcutGuide"
|
2021-08-25 15:22:12 +08:00
|
|
|
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-10-26 21:02:31 +08:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_Enable" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting.Icon>
|
|
|
|
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsShortcutGuide.png" ShowAsMonochrome="False" />
|
|
|
|
</controls:Setting.Icon>
|
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 20:15:08 +08:00
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}" x:Uid="ToggleSwitch"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2022-10-26 21:02:31 +08:00
|
|
|
<InfoBar x:Uid="GPO_IsSettingForced"
|
|
|
|
Severity="Informational"
|
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" />
|
2021-07-05 22:25:23 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsGroup x:Uid="Shortcut" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
2021-07-05 22:25:23 +08:00
|
|
|
|
2021-09-23 21:23:22 +08:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_ActivationMethod">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToComboBoxIndexConverter}}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_CustomizedShortcut"/>
|
|
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_LongPressWindowsKey"/>
|
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="Activation_Shortcut" Icon="" Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource FalseToVisibleConverter}}">
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting.ActionContent>
|
2021-09-07 02:21:18 +08:00
|
|
|
<controls:ShortcutControl HotkeySettings="{x:Bind Path=ViewModel.OpenShortcutGuide, Mode=TwoWay}"
|
2022-09-20 22:21:05 +08:00
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-09-23 21:23:22 +08:00
|
|
|
|
2022-11-18 22:22:40 +08:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_PressTimeForGlobalWindowsShortcuts" Icon="" Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource TrueToVisibleConverter}}">
|
2021-09-23 21:23:22 +08:00
|
|
|
<controls:Setting.ActionContent>
|
2022-09-21 00:59:18 +08:00
|
|
|
<NumberBox
|
2021-09-23 21:23:22 +08:00
|
|
|
Minimum="100"
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.PressTime}"
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
SmallChange="50"
|
2022-11-18 22:22:40 +08:00
|
|
|
LargeChange="100"
|
|
|
|
/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="ShortcutGuide_PressTimeForTaskbarIconShortcuts" Icon="" Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource TrueToVisibleConverter}}">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<NumberBox
|
|
|
|
Minimum="100"
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.DelayTime}"
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
SmallChange="50"
|
2021-09-23 21:23:22 +08:00
|
|
|
LargeChange="100"
|
|
|
|
/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
2022-09-21 00:59:18 +08:00
|
|
|
<InfoBar
|
2021-09-23 21:23:22 +08:00
|
|
|
x:Uid="ShortcutGuide_PressWinKeyWarning"
|
|
|
|
Severity="Warning"
|
2021-10-01 21:11:09 +08:00
|
|
|
IsTabStop="True"
|
2021-09-23 21:23:22 +08:00
|
|
|
IsClosable="False"
|
2022-09-20 22:21:05 +08:00
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2021-09-23 21:23:22 +08:00
|
|
|
/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
2020-07-25 03:02:56 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsGroup x:Uid="ShortcutGuide_Appearance_Behavior" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
2021-09-19 22:22:39 +08:00
|
|
|
<controls:Setting x:Uid="ColorModeHeader" Icon="">
|
2022-09-20 22:21:05 +08:00
|
|
|
<controls:Setting.Description>
|
|
|
|
<HyperlinkButton Click="OpenColorsSettings_Click"
|
|
|
|
x:Uid="Windows_Color_Settings"/>
|
|
|
|
</controls:Setting.Description>
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.ThemeIndex}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Dark"/>
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Light"/>
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Default"/>
|
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2020-03-27 23:58:53 +08:00
|
|
|
|
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_OverlayOpacity">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<Slider Minimum="0"
|
2022-09-20 22:21:05 +08:00
|
|
|
Maximum="100"
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.OverlayOpacity}"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingsGroup>
|
2020-07-25 03:02:56 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsGroup x:Uid="ExcludedApps" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
<controls:SettingExpander.Header>
|
2021-09-19 22:22:39 +08:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_DisabledApps" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<TextBox x:Uid="ShortcutGuide_DisabledApps_TextBoxControl"
|
2022-09-20 22:21:05 +08:00
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"
|
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.DisabledApps, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility ="Visible"
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
AcceptsReturn="True"
|
|
|
|
MinWidth="240"
|
|
|
|
MinHeight="160" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
|
|
|
</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>
|
|
|
|
<controls:PageLink x:Uid="LearnMore_ShortcutGuide" Link="https://aka.ms/PowerToysOverview_ShortcutGuide"/>
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl>
|
2020-03-27 23:58:53 +08:00
|
|
|
</Page>
|