2020-03-31 20:32:22 +08:00
|
|
|
<Page
|
|
|
|
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:local="using:Microsoft.PowerToys.Settings.UI.Views"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2020-04-17 02:45:27 +08:00
|
|
|
xmlns:viewModel="using:Microsoft.PowerToys.Settings.UI.ViewModels"
|
2020-03-31 20:32:22 +08:00
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
2020-04-17 02:45:27 +08:00
|
|
|
xmlns:CustomControls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2020-05-29 21:11:52 +08:00
|
|
|
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
|
2020-03-31 20:32:22 +08:00
|
|
|
mc:Ignorable="d"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<Page.Resources>
|
|
|
|
<viewModel:FancyZonesViewModel x:Key="eventViewModel"/>
|
2020-05-29 21:11:52 +08:00
|
|
|
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
2020-04-17 02:45:27 +08:00
|
|
|
</Page.Resources>
|
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
<Grid ColumnSpacing="{StaticResource DefaultColumnSpacing}" RowSpacing="{StaticResource DefaultRowSpacing}">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="LayoutVisualStates">
|
|
|
|
<VisualState x:Name="WideLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource WideLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="1" />
|
|
|
|
<Setter Target="SidePanel.(Grid.Row)" Value="0" />
|
2020-05-26 15:34:14 +08:00
|
|
|
<Setter Target="SidePanel.Width" Value="{StaticResource SidePanelWidth}" />
|
2020-03-31 20:32:22 +08:00
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SmallLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource SmallLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="0" />
|
|
|
|
<Setter Target="SidePanel.(Grid.Row)" Value="1" />
|
2020-05-26 15:34:14 +08:00
|
|
|
<Setter Target="SidePanel.Width" Value="Auto" />
|
2020-03-31 20:32:22 +08:00
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<StackPanel Orientation="Vertical" x:Name="FZSettingsView">
|
|
|
|
<TextBlock x:Uid="FancyZones_Description"
|
2020-03-31 20:32:22 +08:00
|
|
|
TextWrapping="Wrap"/>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<ToggleSwitch x:Uid="FancyZones_EnableToggleControl_HeaderText"
|
|
|
|
IsOn="{ Binding Mode=TwoWay, Path=IsEnabled}"
|
2020-05-06 04:58:48 +08:00
|
|
|
Margin="{StaticResource MediumTopMargin}" />
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2020-05-25 17:47:32 +08:00
|
|
|
<Button Margin="{StaticResource MediumTopMargin}"
|
|
|
|
Style="{StaticResource AccentButtonStyle}"
|
|
|
|
Command = "{Binding LaunchEditorEventHandler, Source={StaticResource eventViewModel}}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<Viewbox Height="12" Width="12">
|
|
|
|
<PathIcon Data="M896 0v896H0V0h896zM768 768V128H128v640h640zM0 1920v-896h1920v896H0zm128-768v640h1664v-640H128zM1024 0h896v896h-896V0zm768 768V128h-640v640h640z"/>
|
|
|
|
</Viewbox>
|
|
|
|
<TextBlock Margin="12,0,0,0" x:Uid="FancyZones_LaunchEditorButtonControl"/>
|
|
|
|
</StackPanel>
|
|
|
|
</Button>
|
|
|
|
|
2020-04-30 01:29:31 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_ZoneBehavior_GroupSettings"
|
2020-04-17 02:45:27 +08:00
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<CustomControls:HotkeySettingsControl
|
|
|
|
x:Uid="FancyZones_HokeyEditorControl_Header"
|
2020-05-29 20:37:09 +08:00
|
|
|
Width="240"
|
2020-04-17 02:45:27 +08:00
|
|
|
HorizontalAlignment="Left"
|
2020-05-25 17:47:32 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2020-04-17 02:45:27 +08:00
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.EditorHotkey, Mode=TwoWay}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_ShiftDragCheckBoxControl_Header"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=ShiftDrag}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"
|
|
|
|
/>
|
|
|
|
|
2020-05-08 04:29:02 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_MouseDragCheckBoxControl_Header"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=MouseSwitch}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"
|
|
|
|
/>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_OverrideSnapHotkeysCheckBoxControl"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=OverrideSnapHotkeys}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
2020-05-27 23:06:17 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_MoveWindowsAcrossAllMonitorsCheckBoxControl"
|
2020-05-08 04:29:02 +08:00
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=MoveWindowsAcrossMonitors}"
|
2020-04-17 02:45:27 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_DisplayChangeMoveWindowsCheckBoxControl"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=DisplayChangeMoveWindows}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_ZoneSetChangeMoveWindows"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=ZoneSetChangeMoveWindows}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_UseCursorPosEditorStartupScreen"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=UseCursorPosEditorStartupScreen}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
2020-05-08 04:29:02 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_ShowZonesOnAllMonitorsCheckBoxControl"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=ShowOnAllMonitors}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_MakeDraggedWindowTransparentCheckBoxControl"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=MakeDraggedWindowsTransparent}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-05-27 23:06:17 +08:00
|
|
|
<TextBlock x:Uid="Appearance_GroupSettings"
|
2020-03-31 20:32:22 +08:00
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"/>
|
|
|
|
|
2020-05-29 21:11:52 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="{StaticResource SmallTopMargin}" Spacing="12">
|
|
|
|
<Slider x:Uid="FancyZones_HighlightOpacity"
|
|
|
|
Minimum="0"
|
|
|
|
Maximum="100"
|
|
|
|
Width="240"
|
|
|
|
IsThumbToolTipEnabled="False"
|
|
|
|
Value="{ Binding Mode=TwoWay, Path=HighlightOpacity}"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
<TextBlock Text="{ Binding Mode=OneWay, Path=HighlightOpacity, Converter={StaticResource StringFormatConverter}, ConverterParameter=' {0}%' }"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontSize="16"
|
|
|
|
Margin="0,21,0,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_ZoneHighlightColor"
|
2020-03-31 20:32:22 +08:00
|
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}" />
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-05-25 17:47:32 +08:00
|
|
|
<muxc:DropDownButton Margin="0,4,0,0" IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}" Padding="4,4,8,4">
|
|
|
|
<Border Width="48" CornerRadius="2" Height="24">
|
|
|
|
<Border.Background>
|
|
|
|
<SolidColorBrush Color="{Binding Path=ZoneHighlightColor, Mode=TwoWay}"/>
|
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
|
|
|
<muxc:DropDownButton.Flyout>
|
|
|
|
<Flyout>
|
|
|
|
<muxc:ColorPicker x:Name="FancyZones_ZoneHighlightColor"
|
2020-04-17 02:45:27 +08:00
|
|
|
Margin="0,6,0,0"
|
2020-03-31 20:32:22 +08:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
IsColorSliderVisible="True"
|
|
|
|
IsColorChannelTextInputVisible="True"
|
|
|
|
IsHexInputVisible="True"
|
2020-05-08 02:24:19 +08:00
|
|
|
IsAlphaEnabled="False"
|
|
|
|
IsAlphaSliderVisible="False"
|
|
|
|
IsAlphaTextInputVisible="False"
|
|
|
|
Color="{Binding Path=ZoneHighlightColor, Mode=TwoWay}"
|
2020-05-25 17:47:32 +08:00
|
|
|
/>
|
|
|
|
</Flyout>
|
|
|
|
</muxc:DropDownButton.Flyout>
|
|
|
|
|
|
|
|
</muxc:DropDownButton>
|
|
|
|
|
2020-05-08 02:24:19 +08:00
|
|
|
|
2020-04-18 06:25:08 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_InActiveColor"
|
|
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}" />
|
2020-05-08 02:24:19 +08:00
|
|
|
|
2020-05-25 17:47:32 +08:00
|
|
|
<muxc:DropDownButton Margin="0,4,0,0" IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}" Padding="4,4,8,4">
|
|
|
|
<Border Width="48" CornerRadius="2" Height="24">
|
|
|
|
<Border.Background>
|
|
|
|
<SolidColorBrush Color="{Binding Path=ZoneInActiveColor, Mode=TwoWay}"/>
|
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
|
|
|
<muxc:DropDownButton.Flyout>
|
|
|
|
<Flyout>
|
|
|
|
<muxc:ColorPicker x:Name="FancyZones_InActiveColorPicker"
|
2020-04-18 06:25:08 +08:00
|
|
|
Margin="0,6,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
IsColorSliderVisible="True"
|
|
|
|
IsColorChannelTextInputVisible="True"
|
|
|
|
IsHexInputVisible="True"
|
2020-05-08 02:24:19 +08:00
|
|
|
IsAlphaEnabled="False"
|
|
|
|
IsAlphaSliderVisible="False"
|
|
|
|
IsAlphaTextInputVisible="False"
|
2020-05-25 17:47:32 +08:00
|
|
|
Color="{Binding Path=ZoneInActiveColor, Mode=TwoWay}"/>
|
|
|
|
</Flyout>
|
|
|
|
</muxc:DropDownButton.Flyout>
|
|
|
|
</muxc:DropDownButton>
|
|
|
|
|
|
|
|
|
2020-04-18 06:25:08 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_BorderColor"
|
|
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}" />
|
2020-05-25 17:47:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
<muxc:DropDownButton Margin="0,4,0,0" IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}" Padding="4,4,8,4">
|
|
|
|
<Border Width="48" CornerRadius="2" Height="24">
|
|
|
|
<Border.Background>
|
|
|
|
<SolidColorBrush Color="{Binding Path=ZoneBorderColor, Mode=TwoWay}"/>
|
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
|
|
|
<muxc:DropDownButton.Flyout>
|
|
|
|
<Flyout>
|
|
|
|
<muxc:ColorPicker x:Name="FancyZones_BorderColor"
|
2020-04-18 06:25:08 +08:00
|
|
|
Margin="0,6,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
2020-05-26 15:34:14 +08:00
|
|
|
IsColorSliderVisible="True"
|
2020-04-18 06:25:08 +08:00
|
|
|
IsColorChannelTextInputVisible="True"
|
|
|
|
IsHexInputVisible="True"
|
2020-05-08 02:24:19 +08:00
|
|
|
IsAlphaEnabled="False"
|
|
|
|
IsAlphaSliderVisible="False"
|
|
|
|
IsAlphaTextInputVisible="False"
|
|
|
|
Color="{Binding Path=ZoneBorderColor, Mode=TwoWay}"
|
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Flyout>
|
|
|
|
</muxc:DropDownButton.Flyout>
|
|
|
|
</muxc:DropDownButton>
|
2020-05-08 02:24:19 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_ExcludeApps"
|
2020-03-31 20:32:22 +08:00
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"/>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<TextBox x:Uid="FancyZones_ExcludeApps_TextBoxControl"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Text="{ Binding Mode=TwoWay, Path=ExcludedApps}"
|
2020-05-07 21:11:10 +08:00
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"
|
2020-05-29 20:37:09 +08:00
|
|
|
Width="380"
|
|
|
|
Height="160"
|
|
|
|
HorizontalAlignment="Left"
|
2020-05-15 23:37:50 +08:00
|
|
|
TextWrapping="Wrap"
|
2020-05-07 21:11:10 +08:00
|
|
|
AcceptsReturn="True"/>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
</StackPanel>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
|
|
|
<StackPanel x:Name="SidePanel"
|
|
|
|
Orientation="Vertical"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Width="{StaticResource SidePanelWidth}"
|
|
|
|
Grid.Column="1">
|
|
|
|
|
2020-05-12 03:36:55 +08:00
|
|
|
<TextBlock x:Uid="About_FancyZones"
|
2020-04-17 02:45:27 +08:00
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Margin="{StaticResource XSmallBottomMargin}"/>
|
2020-05-26 15:34:14 +08:00
|
|
|
|
|
|
|
<Image MaxWidth="240" Source="https://user-images.githubusercontent.com/9866362/77859136-f04ae880-7207-11ea-8a7f-4295342fe319.gif" />
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-05-06 04:03:48 +08:00
|
|
|
<HyperlinkButton NavigateUri="https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones/README.md">
|
|
|
|
<TextBlock x:Uid="Module_overview" />
|
|
|
|
</HyperlinkButton>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-05-06 04:03:48 +08:00
|
|
|
<HyperlinkButton NavigateUri="https://github.com/microsoft/PowerToys/issues">
|
|
|
|
<TextBlock x:Uid="Give_Feedback" />
|
|
|
|
</HyperlinkButton>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
|
|
|
<!--
|
|
|
|
<TextBlock Text="Contributors"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"/>
|
|
|
|
|
|
|
|
<HyperlinkButton Content="Contributor name"/>
|
|
|
|
<HyperlinkButton Content="Contributor name"/>
|
|
|
|
<HyperlinkButton Content="Contributor name"/>
|
|
|
|
-->
|
2020-03-31 20:32:22 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Page>
|