2021-08-31 23:23:00 +08:00
|
|
|
<Page
|
2020-03-31 20:32:22 +08:00
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.FancyZonesPage"
|
|
|
|
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"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
2021-07-05 22:25:23 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
|
2020-03-31 20:32:22 +08:00
|
|
|
mc:Ignorable="d"
|
2020-10-29 02:10:08 +08:00
|
|
|
AutomationProperties.LandmarkType="Main">
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<Page.Resources>
|
2021-10-03 22:48:50 +08:00
|
|
|
<converters:BoolToObjectConverter x:Key="BoolToComboBoxIndexConverter" TrueValue="1" FalseValue="0"/>
|
2020-05-29 21:11:52 +08:00
|
|
|
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
2020-04-17 02:45:27 +08:00
|
|
|
</Page.Resources>
|
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsPageControl x:Uid="FancyZones"
|
2021-08-25 15:22:12 +08:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/FancyZones.png">
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
<StackPanel Orientation="Vertical">
|
2020-08-19 05:46:32 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting x:Uid="FancyZones_EnableToggleControl_HeaderText">
|
|
|
|
<controls:Setting.Icon>
|
|
|
|
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsFancyZones.png" ShowAsMonochrome="False" />
|
|
|
|
</controls:Setting.Icon>
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
|
|
|
|
<controls:SettingsGroup x:Uid="FancyZones_Editor_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<Button Style="{StaticResource SettingButtonStyle}" x:Uid="FancyZones_LaunchEditorButton_Accessible" Command="{x:Bind ViewModel.LaunchEditorEventHandler}">
|
2021-09-19 22:22:39 +08:00
|
|
|
<controls:Setting x:Uid="FancyZones_LaunchEditorButtonControl" Style="{StaticResource ExpanderHeaderSettingStyle}" Icon="">
|
2021-08-24 01:48:52 +08:00
|
|
|
<!--<controls:Setting.Icon>
|
|
|
|
<PathIcon Data="M45,48H25.5V45H45V25.5H25.5v-3H45V3H25.5V0H48V48ZM22.5,48H3V45H22.5V3H3V0H25.5V48ZM0,48V0H3V48Z"/>
|
|
|
|
</controls:Setting.Icon>-->
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<FontIcon Glyph="" FontFamily="{ThemeResource SymbolThemeFontFamily}" />
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</Button>
|
2021-10-19 21:54:44 +08:00
|
|
|
|
|
|
|
<controls:Setting x:Uid="Activation_Shortcut" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.EditorHotkey, Mode=TwoWay}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-08-24 01:48:52 +08:00
|
|
|
|
2021-10-19 21:54:44 +08:00
|
|
|
<controls:Setting x:Uid="FancyZones_UseCursorPosEditorStartupScreen" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.UseCursorPosEditorStartupScreen, Converter={StaticResource BoolToComboBoxIndexConverter}}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_LaunchPositionScreen" />
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_LaunchPositionMouse" />
|
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
|
|
|
2021-08-31 23:23:00 +08:00
|
|
|
<controls:SettingsGroup x:Uid="FancyZones_Zones" x:Name="ZonesSettingsGroup" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
<controls:Setting x:Uid="FancyZones_ZoneBehavior_GroupSettings" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}" />
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<StackPanel>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_ShiftDragCheckBoxControl_Header" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ShiftDrag}" Margin="{StaticResource ExpanderSettingMargin}" />
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_MouseDragCheckBoxControl_Header" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MouseSwitch}" Margin="{StaticResource ExpanderSettingMargin}" />
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_ShowZonesOnAllMonitorsCheckBoxControl" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ShowOnAllMonitors}" Margin="{StaticResource ExpanderSettingMargin}" />
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
2021-10-19 19:44:13 +08:00
|
|
|
<controls:CheckBoxWithDescriptionControl IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.SpanZonesAcrossMonitors}"
|
|
|
|
Margin="56, -2, 40, 14"
|
|
|
|
x:Uid="FancyZones_SpanZonesAcrossMonitors"/>
|
|
|
|
|
2021-09-19 22:22:39 +08:00
|
|
|
<controls:Setting x:Uid="FancyZones_OverlappingZones" Style="{StaticResource ExpanderContentSettingStyle}">
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox SelectedIndex="{x:Bind Path=ViewModel.OverlappingZonesAlgorithmIndex, Mode=TwoWay}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesSmallest" />
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesLargest" />
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesPositional" />
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesClosestCenter" />
|
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="FancyZones_HighlightOpacity" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<Slider Minimum="0"
|
|
|
|
Maximum="100"
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.HighlightOpacity}"
|
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="FancyZones_ZoneHighlightColor" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
2021-10-22 23:15:17 +08:00
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.ZoneHighlightColor, Mode=TwoWay}" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="FancyZones_InActiveColor" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
2021-10-22 23:15:17 +08:00
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.ZoneInActiveColor, Mode=TwoWay}" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
<controls:Setting x:Uid="FancyZones_BorderColor" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
2021-10-22 23:15:17 +08:00
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.ZoneBorderColor, Mode=TwoWay}" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<controls:SettingsGroup x:Uid="FancyZones_Windows" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
<controls:Setting x:Uid="FancyZones_WindowBehavior_GroupSettings" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}" />
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<StackPanel>
|
|
|
|
<CheckBox x:Uid="FancyZones_DisplayChangeMoveWindowsCheckBoxControl" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.DisplayChangeMoveWindows}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_ZoneSetChangeMoveWindows" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ZoneSetChangeMoveWindows}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_AppLastZoneMoveWindows" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.AppLastZoneMoveWindows}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_OpenWindowOnActiveMonitor" IsChecked="{ Binding Mode=TwoWay, Path=OpenWindowOnActiveMonitor}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_RestoreSize" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.RestoreSize}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_MakeDraggedWindowTransparentCheckBoxControl" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MakeDraggedWindowsTransparent}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
|
|
|
|
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
<controls:Setting x:Uid="FancyZones_OverrideSnapHotkeys" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.OverrideSnapHotkeys}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<StackPanel>
|
2021-10-03 22:48:50 +08:00
|
|
|
<controls:Setting x:Uid="FancyZones_MoveWindow" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition, Converter={StaticResource BoolToComboBoxIndexConverter}}" MinHeight="56" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Accessible">
|
|
|
|
<StackPanel Orientation="Vertical" Spacing="4">
|
2021-10-19 19:44:13 +08:00
|
|
|
<controls:IsEnabledTextBlock x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex"/>
|
2021-10-03 22:48:50 +08:00
|
|
|
<TextBlock FontFamily="{ThemeResource SymbolThemeFontFamily}" Style="{StaticResource SecondaryTextStyle}">
|
|
|
|
<Run x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Description" />
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</ComboBoxItem>
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_MoveWindowBasedOnRelativePosition_Accessible">
|
|
|
|
<StackPanel Orientation="Vertical" Spacing="4">
|
2021-10-19 19:44:13 +08:00
|
|
|
<controls:IsEnabledTextBlock x:Uid="FancyZones_MoveWindowBasedOnRelativePosition"/>
|
|
|
|
<TextBlock FontFamily="{ThemeResource SymbolThemeFontFamily}" Style="{StaticResource SecondaryTextStyle}">
|
2021-10-03 22:48:50 +08:00
|
|
|
<Run x:Uid="FancyZones_MoveWindowBasedOnRelativePosition_Description" />
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</ComboBoxItem>
|
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
<CheckBox x:Uid="FancyZones_MoveWindowsAcrossAllMonitorsCheckBoxControl"
|
|
|
|
Margin="56,8,16,8"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsAcrossMonitors}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"/>
|
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
|
|
<controls:SettingsGroup x:Uid="FancyZones_Layouts" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
<controls:Setting x:Uid="FancyZones_QuickLayoutSwitch" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}" >
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.QuickLayoutSwitch}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<StackPanel>
|
|
|
|
<CheckBox x:Uid="FancyZones_FlashZonesOnQuickSwitch" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.FlashZonesOnQuickSwitch}" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.QuickSwitchEnabled}" Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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="FancyZones_ExcludeApps" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<TextBox x:Uid="FancyZones_ExcludeApps_TextBoxControl"
|
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"
|
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.ExcludedApps, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility ="Visible"
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
AcceptsReturn="True"
|
|
|
|
MinWidth="240"
|
|
|
|
MinHeight="160" />
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
|
|
|
</controls:SettingsGroup>
|
2020-05-29 21:11:52 +08:00
|
|
|
</StackPanel>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2021-07-05 22:25:23 +08:00
|
|
|
|
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2020-05-26 15:34:14 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
<controls:PageLink x:Uid="LearnMore_FancyZones" Link="https://aka.ms/PowerToysOverview_FancyZones"/>
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl>
|
2020-03-31 20:32:22 +08:00
|
|
|
</Page>
|