2020-12-15 20:16:09 +08:00
|
|
|
<Page
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2021-02-26 19:21:58 +08:00
|
|
|
xmlns:ViewModels="using:Microsoft.PowerToys.Settings.UI.Library.ViewModels"
|
2020-12-15 20:16:09 +08:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
2021-08-12 20:53:12 +08:00
|
|
|
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
|
|
|
|
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
2020-12-15 20:16:09 +08:00
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerLauncherPage"
|
2021-07-05 22:25:23 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2021-02-26 19:21:58 +08:00
|
|
|
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
|
2020-12-15 20:16:09 +08:00
|
|
|
mc:Ignorable="d"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
|
|
AutomationProperties.LandmarkType="Main">
|
2021-07-05 22:25:23 +08:00
|
|
|
|
2021-02-26 19:21:58 +08:00
|
|
|
<Page.Resources>
|
|
|
|
<converters:BoolToObjectConverter x:Key="BoolToVisibilityConverter" TrueValue="Visible" FalseValue="Collapsed"/>
|
|
|
|
<converters:BoolNegationConverter x:Key="BoolNegationConverter"/>
|
|
|
|
</Page.Resources>
|
2020-12-15 20:16:09 +08:00
|
|
|
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl x:Uid="About_PowerLauncher"
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerLauncher.png"
|
|
|
|
ModuleImageLink="https://aka.ms/PowerToysOverview_PowerToysRun">
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<ToggleSwitch x:Uid="PowerLauncher_EnablePowerLauncher"
|
2021-08-12 20:53:12 +08:00
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.EnablePowerLauncher}" />
|
2020-12-15 20:16:09 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="Shortcuts"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
|
2020-12-15 20:16:09 +08:00
|
|
|
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:HotkeySettingsControl x:Uid="PowerLauncher_OpenPowerLauncher"
|
2020-12-15 20:16:09 +08:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
MinWidth="240"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.OpenPowerLauncher, Mode=TwoWay}"
|
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
|
|
|
Enabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
<!--<Custom:HotkeySettingsControl x:Uid="PowerLauncher_OpenFileLocation"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{Binding Path=ViewModel.OpenFileLocation, Mode=TwoWay}"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>
|
|
|
|
<Custom:HotkeySettingsControl x:Uid="PowerLauncher_CopyPathLocation"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{Binding Path=ViewModel.CopyPathLocation, Mode=TwoWay}"
|
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>
|
|
|
|
<Custom:HotkeySettingsControl x:Uid="PowerLauncher_OpenConsole"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{Binding Path=ViewModel.OpenConsole, Mode=TwoWay}"
|
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<!--<CheckBox x:Uid="PowerLauncher_OverrideWinRKey"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="False"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<!--<CheckBox x:Uid="PowerLauncher_OverrideWinSKey"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{Binding Mode=TwoWay, Path=ViewModel.OverrideWinSKey}"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<CheckBox x:Uid="PowerLauncher_IgnoreHotkeysInFullScreen"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.IgnoreHotkeysInFullScreen}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextBlock x:Uid="PowerLauncher_SearchResults"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
|
2020-12-15 20:16:09 +08:00
|
|
|
|
|
|
|
<!--<ComboBox x:Uid="PowerLauncher_SearchResultPreference"
|
|
|
|
MinWidth="320"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
ItemsSource="{Binding searchResultPreferencesOptions}"
|
|
|
|
SelectedItem="{Binding Mode=TwoWay, Path=SelectedSearchResultPreference}"
|
|
|
|
SelectedValuePath="Item2"
|
|
|
|
DisplayMemberPath="Item1"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<ComboBox x:Uid="PowerLauncher_SearchTypePreference"
|
|
|
|
MinWidth="320"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
ItemsSource="{Binding searchTypePreferencesOptions}"
|
|
|
|
SelectedItem="{Binding Mode=TwoWay, Path=SelectedSearchTypePreference}"
|
|
|
|
SelectedValuePath="Item2"
|
|
|
|
DisplayMemberPath="Item1"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<muxc:NumberBox x:Uid="PowerLauncher_MaximumNumberOfResults"
|
|
|
|
Value="{Binding Mode=TwoWay, Path=MaximumNumberOfResults}"
|
|
|
|
MinWidth="240"
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Minimum="1"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
|
|
|
|
<CheckBox x:Uid="PowerLauncher_ClearInputOnLaunch"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ClearInputOnLaunch}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
/>
|
|
|
|
|
2021-03-10 01:20:49 +08:00
|
|
|
<TextBlock x:Uid="Run_PositionAppearance_GroupSettings"
|
2020-12-15 20:16:09 +08:00
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}" />
|
2021-03-10 01:20:49 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="Run_PositionHeader"
|
|
|
|
x:Name="RadioButtons_Name_Position"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}" />
|
2021-03-10 01:20:49 +08:00
|
|
|
|
2021-06-09 01:56:38 +08:00
|
|
|
<StackPanel AutomationProperties.LabeledBy="{Binding ElementName=RadioButtons_Name_Position}">
|
|
|
|
|
2021-03-10 01:20:49 +08:00
|
|
|
<RadioButton x:Uid="Run_Radio_Position_Primary_Monitor"
|
|
|
|
GroupName="Run_Position"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.IsPrimaryMonitorPositionRadioButtonChecked}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
|
|
|
|
<RadioButton x:Uid="Run_Radio_Position_Cursor"
|
|
|
|
GroupName="Run_Position"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.IsCursorPositionRadioButtonChecked}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
|
|
|
|
<RadioButton x:Uid="Run_Radio_Position_Focus"
|
|
|
|
GroupName="Run_Position"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.IsFocusPositionRadioButtonChecked}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
|
2021-06-09 01:56:38 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
2020-12-15 20:16:09 +08:00
|
|
|
<!-- We cannot navigate to all the radio buttons using the arrow keys because of an XYNavigation issue in the RadioButtons control.
|
|
|
|
The screen reader does not read the heading when we tab into a radio button, even though the LabeledBy automation property is set.
|
|
|
|
Link to the issue in the winui repository - https://github.com/microsoft/microsoft-ui-xaml/issues/3156 -->
|
|
|
|
<TextBlock x:Uid="ColorModeHeader"
|
|
|
|
x:Name="RadioButtons_Name_Theme"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}" />
|
2020-12-15 20:16:09 +08:00
|
|
|
<StackPanel AutomationProperties.LabeledBy="{Binding ElementName=RadioButtons_Name_Theme}">
|
|
|
|
<RadioButton x:Uid="Radio_Theme_Dark"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
IsChecked="{Binding Mode=TwoWay, Path=IsDarkThemeRadioButtonChecked}" />
|
|
|
|
|
|
|
|
<RadioButton x:Uid="Radio_Theme_Light"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
IsChecked="{Binding Mode=TwoWay, Path=IsLightThemeRadioButtonChecked}" />
|
|
|
|
|
|
|
|
<RadioButton x:Uid="Radio_Theme_Default"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
IsChecked="{Binding Mode=TwoWay, Path=IsSystemThemeRadioButtonChecked}" />
|
2021-03-01 21:56:30 +08:00
|
|
|
<HyperlinkButton Click="OpenColorsSettings_Click"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}">
|
2020-12-15 20:16:09 +08:00
|
|
|
<TextBlock x:Uid="Windows_Color_Settings" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
</StackPanel>
|
2021-02-26 19:21:58 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="PowerLauncher_Plugins"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
|
2021-02-26 19:21:58 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="Run_PluginUseDescription"
|
2021-03-01 21:56:30 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToOpacityConverter}}"
|
2021-02-26 19:21:58 +08:00
|
|
|
TextWrapping="Wrap"/>
|
2021-08-12 20:53:12 +08:00
|
|
|
|
|
|
|
<AutoSuggestBox x:Uid="PowerLauncher_SearchList"
|
|
|
|
QueryIcon="Find"
|
|
|
|
Text="{x:Bind ViewModel.SearchText, Mode=TwoWay}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}">
|
|
|
|
<i:Interaction.Behaviors>
|
|
|
|
<ic:EventTriggerBehavior EventName="TextChanged">
|
|
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.SearchPluginsCommand}" />
|
|
|
|
</ic:EventTriggerBehavior>
|
|
|
|
</i:Interaction.Behaviors>
|
|
|
|
</AutoSuggestBox>
|
|
|
|
|
2021-02-26 19:21:58 +08:00
|
|
|
<TextBlock x:Uid="Run_AllPluginsDisabled"
|
|
|
|
Foreground="{ThemeResource SystemControlErrorTextForegroundBrush}"
|
|
|
|
Visibility="{x:Bind ViewModel.ShowAllPluginsDisabledWarning, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"/>
|
|
|
|
|
2021-03-15 20:52:03 +08:00
|
|
|
<TextBlock x:Uid="Run_PluginsLoading"
|
|
|
|
Visibility="{x:Bind ViewModel.ShowPluginsLoadingMessage, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"/>
|
2021-08-12 20:53:12 +08:00
|
|
|
<ListView ItemsSource="{x:Bind Path=ViewModel.Plugins, Mode=OneWay}"
|
|
|
|
MinHeight="512"
|
2021-02-26 19:21:58 +08:00
|
|
|
IsItemClickEnabled="True"
|
|
|
|
SelectionChanged="PluginsListView_SelectionChanged"
|
|
|
|
x:Name="PluginsListView"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
Margin="-12,12,0,0">
|
|
|
|
<ListView.Resources>
|
|
|
|
<SolidColorBrush x:Key="ListViewItemBackgroundSelected"
|
|
|
|
Color="{ThemeResource SystemChromeLowColor}" />
|
|
|
|
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPointerOver"
|
|
|
|
Color="{ThemeResource SystemChromeLowColor}" />
|
|
|
|
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPressed"
|
|
|
|
Color="{ThemeResource SystemChromeLowColor}" />
|
|
|
|
</ListView.Resources>
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
<Style TargetType="ListViewItem">
|
|
|
|
<Setter Property="HorizontalContentAlignment"
|
|
|
|
Value="Stretch" />
|
|
|
|
<Setter Property="VerticalContentAlignment"
|
|
|
|
Value="Stretch" />
|
|
|
|
<Setter Property="Padding"
|
|
|
|
Value="0,0,0,0" />
|
|
|
|
</Style>
|
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate x:DataType="ViewModels:PowerLauncherPluginViewModel" x:DefaultBindMode="OneWay">
|
|
|
|
<StackPanel Orientation="Vertical" Background="Transparent"
|
2021-03-01 21:56:30 +08:00
|
|
|
Padding="0,12,12,12">
|
2021-02-26 19:21:58 +08:00
|
|
|
<Grid ColumnSpacing="0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="60" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="52" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Image Source="{x:Bind IconPath}"
|
|
|
|
Width="36"
|
|
|
|
Opacity="{x:Bind DisabledOpacity, Mode=OneWay}"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Margin="12,0,12,0"
|
|
|
|
Height="36" />
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical"
|
2021-03-01 21:56:30 +08:00
|
|
|
Grid.Column="1" Margin="0,0,16,0">
|
2021-02-26 19:21:58 +08:00
|
|
|
<TextBlock FontSize="18"
|
|
|
|
Text="{x:Bind Path=Name}"
|
|
|
|
Opacity="{x:Bind DisabledOpacity}"/>
|
2021-03-01 21:56:30 +08:00
|
|
|
<TextBlock
|
2021-02-26 19:21:58 +08:00
|
|
|
Opacity="{x:Bind DisabledOpacity}"
|
|
|
|
Foreground="{ThemeResource SystemBaseMediumColor}"
|
|
|
|
Text="{x:Bind Description}"
|
|
|
|
TextWrapping="Wrap"/>
|
|
|
|
<TextBlock
|
|
|
|
x:Uid="Run_NotAccessibleWarning"
|
|
|
|
Foreground="{ThemeResource SystemControlErrorTextForegroundBrush}"
|
|
|
|
Visibility="{x:Bind ShowNotAccessibleWarning, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
x:Uid="Run_NotAllowedActionKeyword"
|
|
|
|
Foreground="{ThemeResource SystemControlErrorTextForegroundBrush}"
|
|
|
|
Visibility="{x:Bind ShowNotAllowedKeywordWarning, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<ToggleSwitch x:Uid="PowerLauncher_EnablePluginToggle"
|
2021-07-28 18:07:43 +08:00
|
|
|
AutomationProperties.HelpText="{x:Bind Path=Name}"
|
2021-02-26 19:21:58 +08:00
|
|
|
x:Name="ToggleSwitch"
|
2021-07-26 00:03:16 +08:00
|
|
|
OnContent=""
|
|
|
|
OffContent=""
|
2021-02-26 19:21:58 +08:00
|
|
|
IsOn="{x:Bind Path=Disabled, Converter={StaticResource BoolNegationConverter}, Mode=TwoWay}"
|
|
|
|
Grid.Column="2" />
|
|
|
|
</Grid>
|
|
|
|
|
2021-03-01 21:56:30 +08:00
|
|
|
<StackPanel Margin="60,0,0,0"
|
2021-02-26 19:21:58 +08:00
|
|
|
x:Name="AdditionalInfoPanel"
|
|
|
|
Visibility="{x:Bind ShowAdditionalInfoPanel, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
|
<TextBlock x:Uid="PowerLauncher_ActionKeyword"
|
|
|
|
x:Name="ActionKeywordHeaderTextBlock"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2021-03-01 21:56:30 +08:00
|
|
|
Opacity="{x:Bind DisabledOpacity}" />
|
|
|
|
|
2021-02-26 19:21:58 +08:00
|
|
|
<TextBox x:Uid="PowerLauncher_ActionKeyword"
|
|
|
|
Text="{x:Bind Path=ActionKeyword, Mode=TwoWay}"
|
|
|
|
Width="86"
|
|
|
|
Margin="0,6,0,0"
|
|
|
|
AutomationProperties.LabeledBy="{Binding ElementName=ActionKeywordHeaderTextBlock}"
|
|
|
|
HorizontalAlignment="Left"
|
2021-03-01 21:56:30 +08:00
|
|
|
IsEnabled="{x:Bind Enabled, Mode=OneWay}" />
|
2021-07-28 21:37:30 +08:00
|
|
|
|
|
|
|
<CheckBox x:Uid="PowerLauncher_IncludeInGlobalResult"
|
2021-03-01 21:56:30 +08:00
|
|
|
IsChecked="{x:Bind Path=IsGlobal, Mode=TwoWay}"
|
|
|
|
IsEnabled="{x:Bind Enabled, Mode=OneWay}"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"/>
|
|
|
|
|
2021-07-28 21:37:30 +08:00
|
|
|
<TextBlock x:Name="AdditionalOptionsTextBlock"
|
|
|
|
x:Uid="Run_AdditionalOptions"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Visibility="{x:Bind ShowAdditionalOptions, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Opacity="{x:Bind DisabledOpacity}"/>
|
2021-02-26 19:21:58 +08:00
|
|
|
|
|
|
|
<ListView ItemsSource="{x:Bind Path=AdditionalOptions}"
|
|
|
|
SelectionMode="None"
|
|
|
|
IsEnabled="{x:Bind Enabled, Mode=OneWay}">
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
<Style TargetType="ListViewItem">
|
|
|
|
<Setter Property="HorizontalContentAlignment"
|
|
|
|
Value="Stretch" />
|
|
|
|
<Setter Property="VerticalContentAlignment"
|
|
|
|
Value="Stretch" />
|
|
|
|
<Setter Property="Padding"
|
|
|
|
Value="0,0,0,0" />
|
|
|
|
</Style>
|
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate x:DataType="ViewModels:PluginAdditionalOptionViewModel">
|
|
|
|
<CheckBox Content="{x:Bind Path=DisplayLabel}"
|
|
|
|
IsChecked="{x:Bind Path=Value, Mode=TwoWay}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
</ListView>
|
|
|
|
|
2021-03-01 21:56:30 +08:00
|
|
|
<TextBlock Opacity="{x:Bind DisabledOpacity}"
|
2021-02-26 19:21:58 +08:00
|
|
|
Foreground="{ThemeResource SystemBaseMediumColor}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,12,0">
|
|
|
|
<Run x:Uid="PowerLauncher_AuthoredBy" />
|
|
|
|
<Run FontWeight="SemiBold" Text="{x:Bind Author}" />
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
</ListView>
|
2020-12-15 20:16:09 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
<controls:SettingsPageControl.ModuleLinks>
|
|
|
|
<controls:SidePanelLink x:Uid="Learn_More" Link="https://aka.ms/PowerToysOverview_PowerToysRun"/>
|
|
|
|
<controls:SidePanelLink x:Uid="Give_Feedback" Link="https://aka.ms/powerToysGiveFeedback"/>
|
|
|
|
</controls:SettingsPageControl.ModuleLinks>
|
|
|
|
<controls:SettingsPageControl.AttributionLinks>
|
|
|
|
<controls:SidePanelLink Label="Wox" Link="https://github.com/Wox-launcher/Wox/"/>
|
|
|
|
<controls:SidePanelLink Label="Beta Tadele's Window Walker" Link="https://github.com/betsegaw/windowwalker/"/>
|
|
|
|
</controls:SettingsPageControl.AttributionLinks>
|
|
|
|
</controls:SettingsPageControl>
|
|
|
|
</Page>
|