2020-08-19 05:46:32 +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: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-07-18 02:01:46 +08:00
|
|
|
xmlns:Interactivity="using:Microsoft.Xaml.Interactivity"
|
|
|
|
xmlns:Core="using:Microsoft.Xaml.Interactions.Core"
|
2020-03-31 20:32:22 +08:00
|
|
|
mc:Ignorable="d"
|
2020-10-29 02:10:08 +08:00
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
|
|
AutomationProperties.LandmarkType="Main">
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<Page.Resources>
|
2020-05-29 21:11:52 +08:00
|
|
|
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
2020-04-17 02:45:27 +08:00
|
|
|
</Page.Resources>
|
|
|
|
|
2020-08-08 03:00:48 +08:00
|
|
|
<Grid x:Name="MainView" RowSpacing="{StaticResource DefaultRowSpacing}">
|
2020-03-31 20:32:22 +08:00
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="LayoutVisualStates">
|
|
|
|
<VisualState x:Name="WideLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource WideLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SmallLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource SmallLayoutMinWidth}" />
|
2020-08-08 03:00:48 +08:00
|
|
|
<AdaptiveTrigger MinWindowWidth="0" />
|
2020-03-31 20:32:22 +08:00
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
2020-07-25 03:02:56 +08:00
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="0"/>
|
2020-08-08 03:00:48 +08:00
|
|
|
<Setter Target="SidePanel.Width" Value="Auto"/>
|
|
|
|
<Setter Target="FZView.(Grid.Row)" Value="1" />
|
2021-01-06 00:24:14 +08:00
|
|
|
<Setter Target="FZView.Margin" Value="0" />
|
2020-07-25 03:02:56 +08:00
|
|
|
<Setter Target="LinksPanel.(RelativePanel.RightOf)" Value="AboutImage"/>
|
|
|
|
<Setter Target="LinksPanel.(RelativePanel.AlignTopWith)" Value="AboutImage"/>
|
|
|
|
<Setter Target="AboutImage.Margin" Value="0,12,12,0"/>
|
|
|
|
<Setter Target="AboutTitle.Visibility" Value="Collapsed" />
|
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>
|
|
|
|
|
2021-01-06 00:24:14 +08:00
|
|
|
<StackPanel x:Name="FZView"
|
|
|
|
Orientation="Vertical"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="0,0,48,0"
|
|
|
|
MaxWidth="{StaticResource MaxContentWidth}">
|
2020-07-18 02:01:46 +08:00
|
|
|
<ToggleSwitch x:Name="FancyZones_EnableToggleControl_HeaderText"
|
2020-07-25 03:02:56 +08:00
|
|
|
x:Uid="FancyZones_EnableToggleControl_HeaderText"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}"/>
|
2020-11-04 17:05:14 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="FancyZones_Editor_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
|
|
|
|
|
|
|
<Button Margin="{StaticResource SmallTopMargin}"
|
2020-05-25 17:47:32 +08:00
|
|
|
Style="{StaticResource AccentButtonStyle}"
|
2020-07-18 02:01:46 +08:00
|
|
|
Command = "{x:Bind ViewModel.LaunchEditorEventHandler}"
|
2020-08-22 03:21:23 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
|
|
|
AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_LaunchEditorButtonControl}">
|
2020-05-25 17:47:32 +08:00
|
|
|
<StackPanel Orientation="Horizontal">
|
2020-10-25 22:21:14 +08:00
|
|
|
<Viewbox Height="14" Width="14" Margin="-1,1,0,0">
|
|
|
|
<PathIcon Data="M45,48H25.5V45H45V25.5H25.5v-3H45V3H25.5V0H48V48ZM22.5,48H3V45H22.5V3H3V0H25.5V48ZM0,48V0H3V48Z"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Viewbox>
|
2020-10-25 22:21:14 +08:00
|
|
|
<TextBlock Margin="8,0,0,0"
|
2020-08-22 03:21:23 +08:00
|
|
|
Name="FancyZones_LaunchEditorButtonControl"
|
2020-07-25 03:02:56 +08:00
|
|
|
x:Uid="FancyZones_LaunchEditorButtonControl"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Button>
|
2020-11-04 17:05:14 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<CustomControls:HotkeySettingsControl
|
2020-07-25 03:02:56 +08:00
|
|
|
x:Uid="FancyZones_HotkeyEditorControl"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2020-06-05 05:52:04 +08:00
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.EditorHotkey, Mode=TwoWay}"
|
2020-07-25 03:02:56 +08:00
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
2020-07-18 02:01:46 +08:00
|
|
|
Enabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2020-10-23 05:37:10 +08:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
MinWidth="240"
|
2020-06-05 05:52:04 +08:00
|
|
|
/>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-11-04 17:05:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_UseCursorPosEditorStartupScreen"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.UseCursorPosEditorStartupScreen}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
|
|
|
|
|
|
|
<TextBlock x:Uid="FancyZones_ZoneBehavior_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_ShiftDragCheckBoxControl_Header"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ShiftDrag}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2020-04-17 02:45:27 +08:00
|
|
|
/>
|
|
|
|
|
2020-05-08 04:29:02 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_MouseDragCheckBoxControl_Header"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MouseSwitch}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2020-05-08 04:29:02 +08:00
|
|
|
/>
|
2020-11-04 17:05:14 +08:00
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_ShowZonesOnAllMonitorsCheckBoxControl"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ShowOnAllMonitors}"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_SpanZonesAcrossMonitorsCheckBoxControl"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.SpanZonesAcrossMonitors}"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2021-03-08 19:34:31 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}" />
|
2021-02-25 23:23:05 +08:00
|
|
|
|
2021-03-08 19:34:31 +08:00
|
|
|
<ComboBox x:Uid="FancyZones_OverlappingZones"
|
2021-02-25 23:23:05 +08:00
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.OverlappingZonesAlgorithmIndex, Mode=TwoWay}"
|
2021-03-08 19:34:31 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2021-02-25 23:23:05 +08:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
Width="{StaticResource MaxComboBoxWidth}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}">
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesSmallest" />
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesLargest" />
|
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesPositional" />
|
2021-06-16 22:49:29 +08:00
|
|
|
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesClosestCenter" />
|
2021-02-25 23:23:05 +08:00
|
|
|
</ComboBox>
|
2020-11-04 17:05:14 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="FancyZones_WindowBehavior_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-05-08 04:29:02 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_OverrideSnapHotkeysCheckBoxControl"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.OverrideSnapHotkeys}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2021-02-03 19:12:53 +08:00
|
|
|
<RadioButton x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex"
|
|
|
|
GroupName="FancyZones_MoveWindowGroup"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnZoneIndex}"
|
|
|
|
Margin="24,8,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"/>
|
|
|
|
|
|
|
|
<RadioButton x:Uid="FancyZones_MoveWindowBasedOnRelativePosition"
|
|
|
|
GroupName="FancyZones_MoveWindowGroup"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition}"
|
|
|
|
Margin="24,8,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"/>
|
2020-08-21 18:53:03 +08:00
|
|
|
|
2020-05-27 23:06:17 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_MoveWindowsAcrossAllMonitorsCheckBoxControl"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsAcrossMonitors}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="24,8,0,0"
|
2020-08-21 18:53:03 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"/>
|
2020-11-04 17:05:14 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_DisplayChangeMoveWindowsCheckBoxControl"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.DisplayChangeMoveWindows}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2020-04-17 02:45:27 +08:00
|
|
|
/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_ZoneSetChangeMoveWindows"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ZoneSetChangeMoveWindows}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-06-04 20:33:03 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_AppLastZoneMoveWindows"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.AppLastZoneMoveWindows}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-07-01 21:36:05 +08:00
|
|
|
|
2020-07-08 16:37:42 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_OpenWindowOnActiveMonitor"
|
|
|
|
IsChecked="{ Binding Mode=TwoWay, Path=OpenWindowOnActiveMonitor}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-08 16:37:42 +08:00
|
|
|
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
|
|
|
|
|
2020-07-01 21:36:05 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_RestoreSize"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.RestoreSize}"
|
2020-11-04 17:05:14 +08:00
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-06-04 20:33:03 +08:00
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2021-03-25 20:44:55 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_QuickLayoutSwitch_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_QuickLayoutSwitch"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.QuickLayoutSwitch}"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_FlashZonesOnQuickSwitch"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.FlashZonesOnQuickSwitch}"
|
|
|
|
Margin="24,8,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.QuickSwitchEnabled}"/>
|
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="Appearance_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2020-11-04 17:05:14 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_MakeDraggedWindowTransparentCheckBoxControl"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MakeDraggedWindowsTransparent}"
|
|
|
|
Margin="{StaticResource XSmallTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
|
|
|
|
2020-05-29 21:11:52 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="{StaticResource SmallTopMargin}" Spacing="12">
|
2020-07-18 02:01:46 +08:00
|
|
|
<Slider x:Uid="FancyZones_HighlightOpacity"
|
2020-05-29 21:11:52 +08:00
|
|
|
Minimum="0"
|
|
|
|
Maximum="100"
|
2020-10-23 05:37:10 +08:00
|
|
|
MinWidth="240"
|
2020-05-29 21:11:52 +08:00
|
|
|
IsThumbToolTipEnabled="False"
|
2020-07-18 02:01:46 +08:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.HighlightOpacity}"
|
2020-05-29 21:11:52 +08:00
|
|
|
HorizontalAlignment="Left"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-07-25 03:02:56 +08:00
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
Text="{x:Bind Mode=OneWay, Path=ViewModel.HighlightOpacity, Converter={StaticResource StringFormatConverter}, ConverterParameter=' {0}%' }"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
FontSize="16"
|
|
|
|
Margin="0,16,0,0"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-08-19 05:46:32 +08:00
|
|
|
|
2020-05-29 21:11:52 +08:00
|
|
|
</StackPanel>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-08-22 03:21:23 +08:00
|
|
|
<TextBlock Name="FancyZones_ZoneHighlightColor"
|
|
|
|
x:Uid="FancyZones_ZoneHighlightColor"
|
2020-07-25 03:02:56 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-07-18 02:01:46 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<muxc:DropDownButton Margin="0,4,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}"
|
2020-08-22 03:21:23 +08:00
|
|
|
Padding="4,4,8,4"
|
|
|
|
AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_ZoneHighlightColor}">
|
2020-07-25 03:02:56 +08:00
|
|
|
<Border Width="48"
|
|
|
|
CornerRadius="2"
|
|
|
|
Height="24">
|
2020-05-25 17:47:32 +08:00
|
|
|
<Border.Background>
|
2020-07-18 02:01:46 +08:00
|
|
|
<SolidColorBrush Color="{x:Bind Path=ViewModel.ZoneHighlightColor, Mode=TwoWay}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
|
|
|
<muxc:DropDownButton.Flyout>
|
|
|
|
<Flyout>
|
2020-08-22 03:21:23 +08:00
|
|
|
<muxc:ColorPicker x:Name="FancyZones_ZoneHighlightColorPicker"
|
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"
|
2020-07-18 02:01:46 +08:00
|
|
|
Color="{x:Bind Path=ViewModel.ZoneHighlightColor, Mode=TwoWay}"
|
2020-05-25 17:47:32 +08:00
|
|
|
/>
|
|
|
|
</Flyout>
|
|
|
|
</muxc:DropDownButton.Flyout>
|
2020-07-18 02:01:46 +08:00
|
|
|
|
2020-05-25 17:47:32 +08:00
|
|
|
</muxc:DropDownButton>
|
2020-05-08 02:24:19 +08:00
|
|
|
|
2020-08-22 03:21:23 +08:00
|
|
|
<TextBlock Name="FancyZones_InActiveColor"
|
|
|
|
x:Uid="FancyZones_InActiveColor"
|
2020-07-25 03:02:56 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-05-08 02:24:19 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<muxc:DropDownButton Margin="0,4,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}"
|
2020-08-22 03:21:23 +08:00
|
|
|
Padding="4,4,8,4"
|
|
|
|
AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_InActiveColor}">
|
2020-05-25 17:47:32 +08:00
|
|
|
<Border Width="48" CornerRadius="2" Height="24">
|
|
|
|
<Border.Background>
|
2020-07-18 02:01:46 +08:00
|
|
|
<SolidColorBrush Color="{x:Bind Path=ViewModel.ZoneInActiveColor, Mode=TwoWay}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</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"
|
|
|
|
IsColorSliderVisible="True"
|
|
|
|
IsColorChannelTextInputVisible="True"
|
|
|
|
IsHexInputVisible="True"
|
2020-05-08 02:24:19 +08:00
|
|
|
IsAlphaEnabled="False"
|
|
|
|
IsAlphaSliderVisible="False"
|
|
|
|
IsAlphaTextInputVisible="False"
|
2020-07-18 02:01:46 +08:00
|
|
|
Color="{x:Bind Path=ViewModel.ZoneInActiveColor, Mode=TwoWay}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Flyout>
|
|
|
|
</muxc:DropDownButton.Flyout>
|
|
|
|
</muxc:DropDownButton>
|
|
|
|
|
2020-08-22 03:21:23 +08:00
|
|
|
<TextBlock Name="FancyZones_BorderColor"
|
|
|
|
x:Uid="FancyZones_BorderColor"
|
2020-07-25 03:02:56 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<muxc:DropDownButton Margin="0,4,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}"
|
2020-08-22 03:21:23 +08:00
|
|
|
Padding="4,4,8,4"
|
|
|
|
AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_BorderColor}">
|
2020-05-25 17:47:32 +08:00
|
|
|
<Border Width="48" CornerRadius="2" Height="24">
|
|
|
|
<Border.Background>
|
2020-07-18 02:01:46 +08:00
|
|
|
<SolidColorBrush Color="{x:Bind Path=ViewModel.ZoneBorderColor, Mode=TwoWay}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
|
|
|
<muxc:DropDownButton.Flyout>
|
|
|
|
<Flyout>
|
2020-08-22 03:21:23 +08:00
|
|
|
<muxc:ColorPicker x:Name="FancyZones_BorderColorPicker"
|
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"
|
2020-07-18 02:01:46 +08:00
|
|
|
Color="{x:Bind Path=ViewModel.ZoneBorderColor, Mode=TwoWay}"
|
|
|
|
IsEnabled="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Flyout>
|
|
|
|
</muxc:DropDownButton.Flyout>
|
|
|
|
</muxc:DropDownButton>
|
2020-05-08 02:24:19 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_ExcludeApps"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
|
|
|
|
2020-04-17 02:45:27 +08:00
|
|
|
<TextBox x:Uid="FancyZones_ExcludeApps_TextBoxControl"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.ExcludedApps}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
2020-08-01 13:48:38 +08:00
|
|
|
ScrollViewer.VerticalScrollBarVisibility ="Visible"
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
2020-05-15 23:37:50 +08:00
|
|
|
TextWrapping="Wrap"
|
2020-10-23 05:37:10 +08:00
|
|
|
AcceptsReturn="True"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
MinWidth="240"
|
|
|
|
MinHeight="160" />
|
2020-03-31 20:32:22 +08:00
|
|
|
</StackPanel>
|
2020-04-17 02:45:27 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<RelativePanel x:Name="SidePanel"
|
2020-04-17 02:45:27 +08:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Width="{StaticResource SidePanelWidth}"
|
|
|
|
Grid.Column="1">
|
2020-07-25 03:02:56 +08:00
|
|
|
<StackPanel x:Name="DescriptionPanel">
|
|
|
|
<TextBlock x:Uid="About_FancyZones"
|
|
|
|
x:Name="AboutTitle" Grid.ColumnSpan="2"
|
2020-04-17 02:45:27 +08:00
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Margin="{StaticResource XSmallBottomMargin}"/>
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_Description"
|
|
|
|
TextWrapping="Wrap"/>
|
|
|
|
</StackPanel>
|
2020-05-26 15:34:14 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<Border x:Name="AboutImage"
|
|
|
|
CornerRadius="4"
|
|
|
|
Grid.Row="2"
|
|
|
|
MaxWidth="240"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopBottomMargin}"
|
|
|
|
RelativePanel.Below="DescriptionPanel">
|
2021-01-05 02:51:05 +08:00
|
|
|
<HyperlinkButton x:Uid="FancyZones_ImageHyperlinkToDocs">
|
|
|
|
<Image x:Uid="Fancyzones_Image" Source="ms-appx:///Assets/Modules/FancyZones.png" />
|
|
|
|
</HyperlinkButton>
|
2020-07-25 03:02:56 +08:00
|
|
|
</Border>
|
|
|
|
|
|
|
|
<StackPanel x:Name="LinksPanel"
|
2020-08-08 03:00:48 +08:00
|
|
|
Margin="0,1,0,0"
|
2020-07-25 03:02:56 +08:00
|
|
|
RelativePanel.Below="AboutImage"
|
|
|
|
Orientation="Vertical" >
|
2021-01-05 02:51:05 +08:00
|
|
|
<HyperlinkButton x:Uid="FancyZones_ImageHyperlinkToDocs">
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="Module_overview" />
|
|
|
|
</HyperlinkButton>
|
2020-08-07 01:09:50 +08:00
|
|
|
<HyperlinkButton NavigateUri="https://aka.ms/powerToysGiveFeedback">
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="Give_Feedback" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
</StackPanel>
|
|
|
|
</RelativePanel>
|
2020-03-31 20:32:22 +08:00
|
|
|
</Grid>
|
|
|
|
</Page>
|