2020-03-27 16:58:53 +01:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerRenamePage"
|
|
|
|
|
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"
|
2021-07-05 16:25:23 +02:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-04-19 22:00:28 +02:00
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
2020-03-27 16:58:53 +01:00
|
|
|
mc:Ignorable="d"
|
2020-10-28 11:10:08 -07:00
|
|
|
AutomationProperties.LandmarkType="Main">
|
2021-10-19 15:54:44 +02:00
|
|
|
<Page.Resources>
|
|
|
|
|
<converters:BoolToObjectConverter x:Key="BoolToComboBoxIndexConverter" TrueValue="1" FalseValue="0"/>
|
|
|
|
|
<converters:BoolNegationConverter x:Key="BoolNegationConverter" />
|
|
|
|
|
</Page.Resources>
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsPageControl x:Uid="PowerRename"
|
2021-08-25 09:22:12 +02:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerRename.png">
|
2021-07-05 16:25:23 +02:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<StackPanel Orientation="Vertical"
|
2021-01-05 17:24:14 +01:00
|
|
|
x:Name="PowerRenameView"
|
2021-08-23 19:48:52 +02:00
|
|
|
HorizontalAlignment="Stretch">
|
2020-04-17 15:25:08 -07:00
|
|
|
|
2022-10-26 14:02:31 +01:00
|
|
|
<controls:Setting x:Uid="PowerRename_Toggle_Enable" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:Setting.Icon>
|
2021-08-24 19:25:09 +02:00
|
|
|
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsPowerRename.png" ShowAsMonochrome="False" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.Icon>
|
|
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 13:15:08 +01:00
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}" x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-10-26 14:02:31 +01:00
|
|
|
<InfoBar x:Uid="GPO_IsSettingForced"
|
|
|
|
|
Severity="Informational"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}" />
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsGroup x:Uid="PowerRename_ShellIntegration" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
2021-10-19 15:54:44 +02:00
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
|
<controls:Setting x:Uid="PowerRename_Toggle_ContextMenu" Style="{StaticResource ExpanderHeaderSettingStyle}">
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:Setting.ActionContent>
|
2021-10-19 15:54:44 +02:00
|
|
|
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.EnabledOnContextExtendedMenu, Converter={StaticResource BoolToComboBoxIndexConverter}}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
|
<ComboBoxItem x:Uid="PowerRename_Toggle_StandardContextMenu" />
|
|
|
|
|
<ComboBoxItem x:Uid="PowerRename_Toggle_ExtendedContextMenu" />
|
|
|
|
|
</ComboBox>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-10-19 15:54:44 +02:00
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
|
<StackPanel HorizontalAlignment="Stretch">
|
|
|
|
|
<CheckBox x:Uid="PowerRename_Toggle_HideIcon"
|
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.EnabledOnContextMenu, Converter={StaticResource BoolNegationConverter}}"
|
|
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
|
</controls:SettingExpander>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:SettingsGroup>
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsGroup x:Uid="PowerRename_AutoCompleteHeader" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
<controls:SettingExpander IsExpanded="True">
|
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
|
<controls:Setting x:Uid="PowerRename_Toggle_AutoComplete" Style="{StaticResource ExpanderHeaderSettingStyle}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 13:15:08 +01:00
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MRUEnabled}" x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
|
<StackPanel HorizontalAlignment="Stretch">
|
|
|
|
|
<controls:Setting x:Uid="PowerRename_Toggle_MaxDispListNum"
|
|
|
|
|
Style="{StaticResource ExpanderContentSettingStyle}"
|
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.GlobalAndMruEnabled}">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-20 18:59:18 +02:00
|
|
|
<NumberBox SpinButtonPlacementMode="Compact"
|
2021-08-23 19:48:52 +02:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MaxDispListNum}"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
Maximum="20"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"/>
|
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
|
</controls:SettingExpander>
|
2022-07-15 11:17:18 +02:00
|
|
|
<controls:Setting x:Uid="PowerRename_Toggle_RestoreFlagsOnLaunch" Icon="">
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 13:15:08 +01:00
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.RestoreFlagsOnLaunch}" x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
2020-03-27 16:58:53 +01:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsGroup x:Uid="PowerRename_BehaviorHeader" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
<controls:Setting x:Uid="PowerRename_Toggle_UseBoostLib">
|
|
|
|
|
<controls:Setting.ActionContent>
|
2021-12-20 13:15:08 +01:00
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.UseBoostLib}" x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
|
|
|
|
</controls:SettingsGroup>
|
2020-07-24 21:02:56 +02:00
|
|
|
</StackPanel>
|
|
|
|
|
|
2021-07-05 16:25:23 +02:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2020-07-24 21:02:56 +02:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_PowerRename" Link="https://aka.ms/PowerToysOverview_PowerRename"/>
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<controls:PageLink Text="Chris Davis's SmartRenamer" Link="https://github.com/chrdavis/SmartRename"/>
|
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
2021-07-05 16:25:23 +02:00
|
|
|
</controls:SettingsPageControl>
|
2021-08-24 19:25:09 +02:00
|
|
|
</Page>
|