2021-12-14 08:19:08 +00:00
|
|
|
<UserControl
|
2025-09-29 15:00:32 +00:00
|
|
|
x:Class="Flow.Launcher.Plugin.Shell.Views.CMDSetting"
|
2021-12-14 08:19:08 +00:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2025-09-29 15:00:32 +00:00
|
|
|
xmlns:converters="clr-namespace:Flow.Launcher.Plugin.Shell.Converters"
|
2021-12-14 08:19:08 +00:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2025-09-29 15:00:32 +00:00
|
|
|
xmlns:vm="clr-namespace:Flow.Launcher.Plugin.Shell.ViewModels"
|
|
|
|
|
d:DataContext="{d:DesignInstance vm:ShellSettingViewModel}"
|
2021-12-14 08:19:08 +00:00
|
|
|
d:DesignHeight="300"
|
|
|
|
|
d:DesignWidth="300"
|
|
|
|
|
mc:Ignorable="d">
|
2025-09-29 15:00:32 +00:00
|
|
|
<UserControl.Resources>
|
2025-09-29 15:12:02 +00:00
|
|
|
<converters:LeaveShellOpenOrCloseShellAfterPressEnabledConverter x:Key="LeaveShellOpenOrCloseShellAfterPressEnabledConverter" />
|
2025-09-29 15:00:32 +00:00
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
2025-02-27 11:01:32 +00:00
|
|
|
<Grid Margin="{StaticResource SettingPanelMargin}" VerticalAlignment="Top">
|
2020-05-03 05:57:14 +00:00
|
|
|
<Grid.RowDefinitions>
|
2021-12-14 08:19:08 +00:00
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
2023-11-11 11:36:09 +00:00
|
|
|
<RowDefinition />
|
2025-02-05 23:22:41 +00:00
|
|
|
<RowDefinition />
|
2020-05-03 05:57:14 +00:00
|
|
|
</Grid.RowDefinitions>
|
2021-12-14 08:19:08 +00:00
|
|
|
<CheckBox
|
|
|
|
|
x:Name="ReplaceWinR"
|
|
|
|
|
Grid.Row="0"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-14 08:19:08 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-09-29 15:00:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_cmd_relace_winr}"
|
|
|
|
|
IsChecked="{Binding Settings.ReplaceWinR, Mode=TwoWay}" />
|
2023-11-01 16:35:00 +00:00
|
|
|
<CheckBox
|
|
|
|
|
x:Name="CloseShellAfterPress"
|
|
|
|
|
Grid.Row="1"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2023-11-01 16:35:00 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-09-29 15:00:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_cmd_close_cmd_after_press}"
|
2025-09-29 15:12:02 +00:00
|
|
|
IsChecked="{Binding CloseShellAfterPress, Mode=TwoWay}">
|
|
|
|
|
<CheckBox.IsEnabled>
|
|
|
|
|
<MultiBinding Converter="{StaticResource LeaveShellOpenOrCloseShellAfterPressEnabledConverter}">
|
|
|
|
|
<Binding Mode="OneWay" Path="LeaveShellOpen" />
|
|
|
|
|
<Binding Mode="OneWay" Path="SelectedShell" />
|
|
|
|
|
</MultiBinding>
|
|
|
|
|
</CheckBox.IsEnabled>
|
|
|
|
|
</CheckBox>
|
2021-12-14 08:19:08 +00:00
|
|
|
<CheckBox
|
|
|
|
|
x:Name="LeaveShellOpen"
|
2023-11-11 11:36:09 +00:00
|
|
|
Grid.Row="2"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-14 08:19:08 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-09-29 15:00:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_cmd_leave_cmd_open}"
|
|
|
|
|
IsChecked="{Binding LeaveShellOpen, Mode=TwoWay}">
|
|
|
|
|
<CheckBox.IsEnabled>
|
2025-09-29 15:12:02 +00:00
|
|
|
<MultiBinding Converter="{StaticResource LeaveShellOpenOrCloseShellAfterPressEnabledConverter}">
|
2025-09-29 15:00:32 +00:00
|
|
|
<Binding Mode="OneWay" Path="CloseShellAfterPress" />
|
|
|
|
|
<Binding Mode="OneWay" Path="SelectedShell" />
|
|
|
|
|
</MultiBinding>
|
|
|
|
|
</CheckBox.IsEnabled>
|
|
|
|
|
</CheckBox>
|
2021-12-14 08:19:08 +00:00
|
|
|
<CheckBox
|
|
|
|
|
x:Name="AlwaysRunAsAdministrator"
|
2023-11-11 11:36:09 +00:00
|
|
|
Grid.Row="3"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-14 08:19:08 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-09-29 15:00:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_cmd_always_run_as_administrator}"
|
|
|
|
|
IsChecked="{Binding Settings.RunAsAdministrator, Mode=TwoWay}" />
|
2025-02-05 23:22:41 +00:00
|
|
|
<CheckBox
|
|
|
|
|
x:Name="UseWindowsTerminal"
|
|
|
|
|
Grid.Row="4"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2025-02-05 23:22:41 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-09-29 15:00:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_cmd_use_windows_terminal}"
|
|
|
|
|
IsChecked="{Binding Settings.UseWindowsTerminal, Mode=TwoWay}" />
|
2021-12-14 08:19:08 +00:00
|
|
|
<ComboBox
|
|
|
|
|
x:Name="ShellComboBox"
|
2025-02-05 23:22:41 +00:00
|
|
|
Grid.Row="5"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2025-09-29 15:00:32 +00:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
DisplayMemberPath="Display"
|
|
|
|
|
ItemsSource="{Binding AllShells, Mode=OneTime}"
|
|
|
|
|
SelectedValue="{Binding SelectedShell, Mode=TwoWay}"
|
|
|
|
|
SelectedValuePath="Value" />
|
2025-02-05 23:22:41 +00:00
|
|
|
<StackPanel Grid.Row="6" Orientation="Horizontal">
|
2021-12-14 08:19:08 +00:00
|
|
|
<CheckBox
|
|
|
|
|
x:Name="ShowOnlyMostUsedCMDs"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2025-09-29 15:00:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_cmd_history}"
|
|
|
|
|
IsChecked="{Binding Settings.ShowOnlyMostUsedCMDs, Mode=TwoWay}" />
|
2021-12-14 08:19:08 +00:00
|
|
|
<ComboBox
|
|
|
|
|
x:Name="ShowOnlyMostUsedCMDsNumber"
|
2025-02-27 11:01:32 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2025-09-29 15:00:32 +00:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
IsEnabled="{Binding Settings.ShowOnlyMostUsedCMDs, Mode=OneWay}"
|
|
|
|
|
ItemsSource="{Binding OnlyMostUsedCMDsNumbers, Mode=OneTime}"
|
|
|
|
|
SelectedItem="{Binding SelectedOnlyMostUsedCMDsNumber, Mode=TwoWay}" />
|
2021-12-14 08:19:08 +00:00
|
|
|
</StackPanel>
|
2020-05-03 05:57:14 +00:00
|
|
|
</Grid>
|
2014-07-04 07:34:31 +00:00
|
|
|
</UserControl>
|