2021-10-22 13:30:18 +01:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.MouseUtilsPage"
|
|
|
|
|
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"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-10-26 14:02:31 +01:00
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
2022-03-04 12:28:11 +00:00
|
|
|
xmlns:localConverters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
2021-10-22 13:30:18 +01:00
|
|
|
AutomationProperties.LandmarkType="Main">
|
2022-03-04 12:28:11 +00:00
|
|
|
<Page.Resources>
|
2022-10-26 14:02:31 +01:00
|
|
|
<converters:BoolNegationConverter x:Key="BoolNegationConverter"/>
|
2022-03-04 12:28:11 +00:00
|
|
|
<localConverters:FindMyMouseActivationShakeMouseIntToVisibilityConverter x:Key="FindMyMouseActivationShakeMouseIntToVisibilityConverter"/>
|
|
|
|
|
</Page.Resources>
|
2021-10-22 13:30:18 +01:00
|
|
|
<controls:SettingsPageControl x:Uid="MouseUtils"
|
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/MouseUtils.png">
|
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_FindMyMouse">
|
2022-10-26 14:02:31 +01:00
|
|
|
<controls:Setting x:Uid="MouseUtils_Enable_FindMyMouse" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
2021-11-23 16:52:17 +00:00
|
|
|
<controls:Setting.Icon>
|
2022-01-25 18:29:12 +01:00
|
|
|
<BitmapIcon Height="24" Width="24" Margin="-4,0,0,0" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsFindMyMouse.png" ShowAsMonochrome="False" />
|
2021-11-23 16:52:17 +00:00
|
|
|
</controls:Setting.Icon>
|
|
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 13:15:08 +01:00
|
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=TwoWay}" x:Uid="ToggleSwitch"/>
|
2021-11-23 16:52:17 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-10-26 14:02:31 +01:00
|
|
|
<InfoBar x:Uid="GPO_IsSettingForced"
|
|
|
|
|
Severity="Informational"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured}" />
|
|
|
|
|
|
2022-03-04 12:28:11 +00:00
|
|
|
<controls:SettingExpander IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}" IsExpanded="True" >
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:SettingExpander.Header>
|
2022-03-04 12:28:11 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_ActivationMethod" Icon="" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<ComboBox SelectedIndex="{x:Bind Path=ViewModel.FindMyMouseActivationMethod, Mode=TwoWay}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationDoubleControlPress" />
|
|
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationShakeMouse" />
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
<controls:SettingExpander.Content>
|
2021-11-23 16:52:17 +00:00
|
|
|
<StackPanel>
|
2022-03-04 12:28:11 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_ShakingMinimumDistance" Style="{StaticResource ExpanderContentSettingStyle}" Visibility="{x:Bind Mode=OneWay, Path=ViewModel.FindMyMouseActivationMethod, Converter={StaticResource FindMyMouseActivationShakeMouseIntToVisibilityConverter}}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox
|
2022-03-04 12:28:11 +00:00
|
|
|
Minimum="0"
|
|
|
|
|
Maximum="1000000"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseShakingMinimumDistance}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="100"
|
|
|
|
|
LargeChange="1000"
|
|
|
|
|
/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-11-23 16:52:17 +00:00
|
|
|
<CheckBox x:Uid="MouseUtils_Prevent_Activation_On_Game_Mode"
|
|
|
|
|
IsChecked="{x:Bind ViewModel.FindMyMouseDoNotActivateOnGameMode, Mode=TwoWay}"
|
|
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}" />
|
2022-03-04 12:28:11 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
|
</controls:SettingExpander>
|
|
|
|
|
<controls:SettingExpander IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}" IsExpanded="False" >
|
|
|
|
|
<controls:SettingExpander.Header>
|
2022-09-20 16:21:05 +02:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_Appearance_Behavior" Icon="" />
|
2022-03-04 12:28:11 +00:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
|
<StackPanel>
|
2021-11-23 16:52:17 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_OverlayOpacity" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<Slider Minimum="1"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseOverlayOpacity}"
|
|
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_BackgroundColor" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseBackgroundColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_SpotlightColor" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseSpotlightColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_SpotlightRadius" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="5"
|
2021-11-23 16:52:17 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseSpotlightRadius}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
LargeChange="10"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_SpotlightInitialZoom" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<Slider Minimum="1"
|
|
|
|
|
Maximum="40"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseSpotlightInitialZoom}"
|
|
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_AnimationDurationMs" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="0"
|
2021-11-23 16:52:17 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseAnimationDurationMs}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
LargeChange="100"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</StackPanel>
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:SettingExpander.Content>
|
2022-02-14 18:22:05 +00:00
|
|
|
</controls:SettingExpander>
|
|
|
|
|
<controls:SettingExpander IsExpanded="False">
|
|
|
|
|
<controls:SettingExpander.Header>
|
2022-05-06 14:57:48 +02:00
|
|
|
<controls:Setting x:Uid="MouseUtils_FindMyMouse_ExcludedApps" Icon="" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}" Style="{StaticResource ExpanderHeaderSettingStyle}"/>
|
2022-02-14 18:22:05 +00:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
|
<TextBox x:Uid="MouseUtils_FindMyMouse_ExcludedApps_TextBoxControl"
|
|
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"
|
|
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseExcludedApps, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility ="Visible"
|
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
|
TextWrapping="Wrap"
|
2022-05-19 15:07:45 +02:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}"
|
2022-02-14 18:22:05 +00:00
|
|
|
AcceptsReturn="True"
|
|
|
|
|
MinWidth="240"
|
|
|
|
|
MinHeight="160" />
|
|
|
|
|
</controls:SettingExpander.Content>
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:SettingExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-11-23 16:52:17 +00:00
|
|
|
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MouseHighlighter">
|
2022-10-26 14:02:31 +01:00
|
|
|
<controls:Setting x:Uid="MouseUtils_Enable_MouseHighlighter" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:Setting.Icon>
|
2022-01-25 18:29:12 +01:00
|
|
|
<BitmapIcon Height="28" Width="28" Margin="-4,2,0,0" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsMouseHighlighter.png" ShowAsMonochrome="False" />
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:Setting.Icon>
|
|
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 13:15:08 +01:00
|
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=TwoWay}" x:Uid="ToggleSwitch"/>
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-10-26 14:02:31 +01:00
|
|
|
<InfoBar x:Uid="GPO_IsSettingForced"
|
|
|
|
|
Severity="Informational"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured}" />
|
2021-11-22 13:31:31 +00:00
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_ActivationShortcut" Icon="" IsEnabled="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=OneWay}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<controls:ShortcutControl HotkeySettings="{x:Bind Path=ViewModel.MouseHighlighterActivationShortcut, Mode=TwoWay}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
2021-11-23 16:52:17 +00:00
|
|
|
<controls:SettingExpander IsEnabled="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=OneWay}" IsExpanded="False" >
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:SettingExpander.Header>
|
2022-09-20 16:21:05 +02:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_Appearance_Behavior" Icon="" />
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
|
|
|
|
|
|
<StackPanel>
|
2022-09-20 16:21:05 +02:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_PrimaryButtonClickColor" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMouseHighlighterEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterLeftButtonClickColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
2022-09-20 16:21:05 +02:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_SecondaryButtonClickColor" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMouseHighlighterEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterRightButtonClickColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_HighlightOpacity" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMouseHighlighterEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-10-16 14:51:08 +02:00
|
|
|
<Slider Minimum="1"
|
|
|
|
|
Maximum="100"
|
2021-11-22 13:31:31 +00:00
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterOpacity}"
|
|
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_HighlightRadius" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMouseHighlighterEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="5"
|
2021-11-22 13:31:31 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterRadius}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
LargeChange="10"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_FadeDelayMs" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMouseHighlighterEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="100"
|
2021-11-22 13:31:31 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterFadeDelayMs}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
LargeChange="100"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="MouseUtils_MouseHighlighter_FadeDurationMs" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMouseHighlighterEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="100"
|
2021-11-22 13:31:31 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterFadeDurationMs}"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
LargeChange="100"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
|
</controls:SettingExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-01-24 13:29:16 +00:00
|
|
|
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MousePointerCrosshairs">
|
2022-10-26 14:02:31 +01:00
|
|
|
<controls:Setting x:Uid="MouseUtils_Enable_MousePointerCrosshairs" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.Icon>
|
2022-01-26 14:01:24 +00:00
|
|
|
<BitmapIcon Height="28" Width="28" Margin="-6,2,0,0" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsMouseCrosshairs.png" ShowAsMonochrome="False" />
|
2022-01-24 13:29:16 +00:00
|
|
|
</controls:Setting.Icon>
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-01-26 14:01:24 +00:00
|
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=TwoWay}" x:Uid="ToggleSwitch"/>
|
2022-01-24 13:29:16 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-10-26 14:02:31 +01:00
|
|
|
<InfoBar x:Uid="GPO_IsSettingForced"
|
|
|
|
|
Severity="Informational"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured}" />
|
|
|
|
|
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_ActivationShortcut" Icon="" IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=OneWay}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:ShortcutControl HotkeySettings="{x:Bind Path=ViewModel.MousePointerCrosshairsActivationShortcut, Mode=TwoWay}"
|
2022-01-24 13:29:16 +00:00
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:SettingExpander IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=OneWay}" IsExpanded="False" >
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:SettingExpander.Header>
|
2022-09-20 16:21:05 +02:00
|
|
|
<controls:Setting x:Uid="ShortcutGuide_Appearance_Behavior" Icon="" />
|
2022-01-24 13:29:16 +00:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
|
<StackPanel>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsColor" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsColor, Mode=TwoWay}" />
|
2022-01-24 13:29:16 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsOpacity" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<Slider Minimum="1"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
2022-01-26 14:01:24 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsOpacity}"
|
2022-01-24 13:29:16 +00:00
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsRadius" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="1"
|
2022-01-24 13:29:16 +00:00
|
|
|
Maximum="500"
|
2022-01-26 14:01:24 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsRadius}"
|
2022-01-24 13:29:16 +00:00
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
LargeChange="10"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsThickness" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="1"
|
2022-01-24 13:29:16 +00:00
|
|
|
Maximum="50"
|
2022-01-26 14:01:24 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsThickness}"
|
2022-01-24 13:29:16 +00:00
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
LargeChange="10"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderColor" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsBorderColor, Mode=TwoWay}" />
|
2022-01-24 13:29:16 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:Setting x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderSize" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
2022-01-24 13:29:16 +00:00
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox Minimum="0"
|
2022-01-24 13:29:16 +00:00
|
|
|
Maximum="50"
|
2022-01-26 14:01:24 +00:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsBorderSize}"
|
2022-01-24 13:29:16 +00:00
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
LargeChange="2"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
|
</controls:SettingExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-10-22 13:30:18 +01:00
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_MouseUtils" Link="https://aka.ms/PowerToysOverview_MouseUtilities"/>
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<controls:PageLink Text="Raymond Chen's Find My Mouse" Link="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing"/>
|
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
|
|
|
|
</Page>
|