2021-12-29 20:33:20 +03:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.AlwaysOnTopPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2022-11-23 19:57:09 +01:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2022-01-24 18:02:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop"
|
|
|
|
|
IsTabStop="False"
|
2023-07-20 00:12:46 +01:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Settings/Modules/AlwaysOnTop.png">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-09-14 18:41:31 +02:00
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop_EnableToggleControl_HeaderText"
|
2024-01-26 17:12:33 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/AlwaysOnTop.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
2025-01-19 15:32:46 +01:00
|
|
|
Severity="Informational">
|
|
|
|
|
<InfoBar.IconSource>
|
|
|
|
|
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
|
|
|
|
|
</InfoBar.IconSource>
|
|
|
|
|
</InfoBar>
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="AlwaysOnTop_Activation_GroupSettings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
2021-12-29 20:33:20 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop_ActivationShortcut"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.Hotkey, Mode=TwoWay}" />
|
|
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left">
|
2024-01-03 16:41:26 +01:00
|
|
|
<CheckBox x:Uid="AlwaysOnTop_GameMode" IsChecked="{x:Bind ViewModel.DoNotActivateOnGameMode, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-12-29 20:33:20 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="AlwaysOnTop_Behavior_GroupSettings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop_FrameEnabled"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.FrameEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="AlwaysOnTop_FrameColor_Mode" IsEnabled="{x:Bind ViewModel.FrameEnabled, Mode=OneWay}">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.FrameAccentColor, Mode=TwoWay, Converter={StaticResource BoolToComboBoxIndexConverter}}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="AlwaysOnTop_Radio_Custom_Color" />
|
|
|
|
|
<ComboBoxItem x:Uid="AlwaysOnTop_Radio_Windows_Default" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop_FrameColor"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.FrameEnabled, Mode=OneWay}"
|
|
|
|
|
Visibility="{x:Bind ViewModel.FrameAccentColor, Mode=OneWay, Converter={StaticResource ReverseBoolToVisibilityConverter}}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FrameColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="AlwaysOnTop_FrameOpacity" IsEnabled="{x:Bind ViewModel.FrameEnabled, Mode=OneWay}">
|
2023-08-25 11:31:51 +03:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="0"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.FrameOpacity, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="AlwaysOnTop_FrameThickness" IsEnabled="{x:Bind ViewModel.FrameEnabled, Mode=OneWay}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="5"
|
|
|
|
|
Maximum="30"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
Value="{x:Bind ViewModel.FrameThickness, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left" Visibility="{x:Bind ViewModel.Windows11, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
|
2024-01-03 16:41:26 +01:00
|
|
|
<CheckBox x:Uid="AlwaysOnTop_RoundCorners" IsChecked="{x:Bind ViewModel.RoundCornersEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
2022-01-24 18:02:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop_SoundTitle"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left">
|
2024-01-03 16:41:26 +01:00
|
|
|
<CheckBox x:Uid="AlwaysOnTop_Sound" IsChecked="{x:Bind ViewModel.SoundEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="ExcludedApps" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="AlwaysOnTop_ExcludedApps"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard HorizontalContentAlignment="Stretch" ContentAlignment="Vertical">
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBox
|
|
|
|
|
x:Uid="AlwaysOnTop_ExcludedApps_TextBoxControl"
|
|
|
|
|
MinWidth="240"
|
|
|
|
|
MinHeight="160"
|
|
|
|
|
AcceptsReturn="True"
|
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
2024-01-03 16:41:26 +01:00
|
|
|
Text="{x:Bind ViewModel.ExcludedApps, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
2022-11-23 19:57:09 +01:00
|
|
|
TextWrapping="Wrap" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-12-29 20:33:20 +03:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2021-12-29 20:33:20 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_AlwaysOnTop" Link="https://aka.ms/PowerToysOverview_AlwaysOnTop" />
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
2021-12-29 20:33:20 +03:00
|
|
|
</Page>
|