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"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
|
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" />
|
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>
|
|
|
|
|
2020-08-08 03:00:48 +08:00
|
|
|
<StackPanel x:Name="FZView" Orientation="Vertical">
|
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-05-25 17:47:32 +08:00
|
|
|
<Button Margin="{StaticResource MediumTopMargin}"
|
|
|
|
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">
|
|
|
|
<Viewbox Height="12" Width="12">
|
2020-07-18 02:01:46 +08:00
|
|
|
<PathIcon Data="M896 0v896H0V0h896zM768 768V128H128v640h640zM0 1920v-896h1920v896H0zm128-768v640h1664v-640H128zM1024 0h896v896h-896V0zm768 768V128h-640v640h640z"/>
|
2020-05-25 17:47:32 +08:00
|
|
|
</Viewbox>
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock Margin="12,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-06-05 05:52:04 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="FancyZones_ZoneBehavior_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-06-05 05:52:04 +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
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_ShiftDragCheckBoxControl_Header"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ShiftDrag}"
|
2020-04-17 02:45:27 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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-05-08 04:29:02 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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-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-04-17 02:45:27 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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-08-21 18:53:03 +08:00
|
|
|
<CheckBox x:Uid="FancyZones_MoveWindowsBasedOnPositionCheckBoxControl"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition}"
|
|
|
|
Margin="24,12,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"/>
|
|
|
|
|
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-08-21 18:53:03 +08:00
|
|
|
Margin="24,12,0,0"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"/>
|
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-04-17 02:45:27 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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-04-17 02:45:27 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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-06-04 20:33:03 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
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-07-01 21:36:05 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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
|
|
|
<CheckBox x:Uid="FancyZones_UseCursorPosEditorStartupScreen"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.UseCursorPosEditorStartupScreen}"
|
2020-04-17 02:45:27 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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_ShowZonesOnAllMonitorsCheckBoxControl"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ShowOnAllMonitors}"
|
2020-05-08 04:29:02 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-08-07 16:06:25 +08:00
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_SpanZonesAcrossMonitorsCheckBoxControl"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.SpanZonesAcrossMonitors}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
2020-05-08 04:29:02 +08:00
|
|
|
|
|
|
|
<CheckBox x:Uid="FancyZones_MakeDraggedWindowTransparentCheckBoxControl"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MakeDraggedWindowsTransparent}"
|
2020-05-08 04:29:02 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
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-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-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">
|
2020-08-22 03:21:23 +08:00
|
|
|
<Image x:Uid="Fancyzones_Image" Source="ms-appx:///Assets/Modules/FancyZones.png" />
|
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" >
|
2020-07-29 06:02:09 +08:00
|
|
|
<HyperlinkButton NavigateUri="https://aka.ms/PowerToysOverview_FancyZones">
|
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>
|