PowerToys/Plugins/Wox.Plugin.Program/ProgramSetting.xaml

131 lines
4.7 KiB
Plaintext
Raw Normal View History

2019-09-07 13:58:13 +08:00
<UserControl x:Class="Wox.Plugin.Program.ProgramSetting"
2014-03-29 14:42:43 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:program="clr-namespace:Wox.Plugin.Program"
2014-03-29 14:42:43 +08:00
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="600">
2014-03-29 14:42:43 +08:00
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
2014-03-29 14:42:43 +08:00
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Stretch">
<StackPanel Orientation="Vertical" Width="310">
2016-08-20 06:24:21 +08:00
<CheckBox Name="StartMenuEnabled" Click="StartMenuEnabled_Click" Margin="5" Content="{DynamicResource wox_plugin_program_index_start}" />
<CheckBox Name="RegistryEnabled" Click="RegistryEnabled_Click" Margin="5" Content="{DynamicResource wox_plugin_program_index_registry}" />
</StackPanel>
2016-08-20 06:24:21 +08:00
<Button Height="30" HorizontalAlignment="Right" x:Name="btnProgramSuffixes" Width="130" Click="BtnProgramSuffixes_OnClick" Content="{DynamicResource wox_plugin_program_suffixes}" />
<Button Height="30" HorizontalAlignment="Right" Margin="10 0 0 0" x:Name="btnReindex" Width="100" Click="btnReindex_Click" Content="{DynamicResource wox_plugin_program_reindex}" />
</StackPanel>
2019-09-07 13:58:13 +08:00
<ListView x:Name="programSourceView" Grid.Row="1" AllowDrop="True" SelectionMode="Multiple"
PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp"
DragEnter="programSourceView_DragEnter"
Drop="programSourceView_Drop" >
2014-03-29 14:42:43 +08:00
<ListView.View>
<GridView>
2019-09-06 06:06:51 +08:00
<GridViewColumn Header="Name" Width="150">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
2019-09-07 13:58:13 +08:00
<GridViewColumn Header="Enabled" Width="50">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Enabled}"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="{DynamicResource wox_plugin_program_location}" Width="550">
2014-03-29 14:42:43 +08:00
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Location, ConverterParameter=(null), Converter={program:LocationConverter}}"/>
2014-03-29 14:42:43 +08:00
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
<DockPanel Grid.Row="2">
<StackPanel x:Name="indexingPanel" Visibility="Hidden" HorizontalAlignment="Left" Orientation="Horizontal">
2016-08-20 06:24:21 +08:00
<ProgressBar x:Name="progressBarIndexing" Height="20" Width="80" Minimum="0" Maximum="100" IsIndeterminate="True" />
<TextBlock Margin="10 0 0 0" Height="20" HorizontalAlignment="Center" Text="{DynamicResource wox_plugin_program_indexing}" />
</StackPanel>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
2015-01-06 23:24:11 +08:00
<Button x:Name="btnDeleteProgramSource" Click="btnDeleteProgramSource_OnClick" Width="100" Margin="10" Content="{DynamicResource wox_plugin_program_delete}"/>
<Button x:Name="btnEditProgramSource" Click="btnEditProgramSource_OnClick" Width="100" Margin="10" Content="{DynamicResource wox_plugin_program_edit}"/>
<Button x:Name="btnAddProgramSource" Click="btnAddProgramSource_OnClick" Width="100" Margin="10" Content="{DynamicResource wox_plugin_program_add}"/>
2019-09-06 06:06:51 +08:00
<Button x:Name="btnLoadAllProgramSource" Click="btnLoadAllProgramSource_OnClick" Width="100" Margin="10" Content="Load All"/>
</StackPanel>
</DockPanel>
2019-09-07 13:58:13 +08:00
<Button x:Name="btnDisableProgramSource" Click="btnDisableProgramSource_OnClick" Margin="470,0,0,0" Content="Disable" Grid.Row="1" HorizontalAlignment="Left" Width="100" Height="30" VerticalAlignment="Bottom"/>
2014-03-29 14:42:43 +08:00
</Grid>
</UserControl>
2016-08-20 06:24:21 +08:00