|
1 |
| -<UserControl x:Class="Flow.Launcher.Plugin.Program.Views.ProgramSetting" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 |
| - xmlns:program="clr-namespace:Flow.Launcher.Plugin.Program" |
7 |
| - Height="520" |
8 |
| - DataContext="{Binding RelativeSource={RelativeSource Self}}" |
9 |
| - mc:Ignorable="d"> |
| 1 | +<UserControl |
| 2 | + x:Class="Flow.Launcher.Plugin.Program.Views.ProgramSetting" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + xmlns:program="clr-namespace:Flow.Launcher.Plugin.Program" |
| 8 | + Height="520" |
| 9 | + DataContext="{Binding RelativeSource={RelativeSource Self}}" |
| 10 | + mc:Ignorable="d"> |
10 | 11 | <Grid Margin="0">
|
11 | 12 | <Grid.RowDefinitions>
|
12 | 13 | <RowDefinition Height="170" />
|
13 | 14 | <RowDefinition Height="*" />
|
14 | 15 | <RowDefinition Height="60" />
|
15 | 16 | </Grid.RowDefinitions>
|
16 |
| - <StackPanel Grid.Row="0" HorizontalAlignment="Stretch" Orientation="Vertical"> |
| 17 | + <StackPanel |
| 18 | + Grid.Row="0" |
| 19 | + HorizontalAlignment="Stretch" |
| 20 | + Orientation="Vertical"> |
17 | 21 | <StackPanel Width="Auto" Orientation="Vertical">
|
18 | 22 | <StackPanel Width="Auto" Orientation="Horizontal">
|
19 |
| - <CheckBox Name="StartMenuEnabled" |
20 |
| - Width="200" |
21 |
| - Margin="70,8,10,8" |
22 |
| - Content="{DynamicResource flowlauncher_plugin_program_index_start}" |
23 |
| - IsChecked="{Binding EnableStartMenuSource}" |
24 |
| - ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" /> |
25 |
| - <CheckBox Name="RegistryEnabled" |
26 |
| - Margin="70,8,10,8" |
27 |
| - Content="{DynamicResource flowlauncher_plugin_program_index_registry}" |
28 |
| - IsChecked="{Binding EnableRegistrySource}" |
29 |
| - ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" /> |
| 23 | + <CheckBox |
| 24 | + Name="StartMenuEnabled" |
| 25 | + Width="200" |
| 26 | + Margin="70,8,10,8" |
| 27 | + Content="{DynamicResource flowlauncher_plugin_program_index_start}" |
| 28 | + IsChecked="{Binding EnableStartMenuSource}" |
| 29 | + ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" /> |
| 30 | + <CheckBox |
| 31 | + Name="RegistryEnabled" |
| 32 | + Margin="70,8,10,8" |
| 33 | + Content="{DynamicResource flowlauncher_plugin_program_index_registry}" |
| 34 | + IsChecked="{Binding EnableRegistrySource}" |
| 35 | + ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" /> |
30 | 36 | </StackPanel>
|
31 | 37 |
|
32 |
| - <Separator Height="1" BorderBrush="{DynamicResource Color03B}" BorderThickness="1" /> |
| 38 | + <Separator |
| 39 | + Height="1" |
| 40 | + BorderBrush="{DynamicResource Color03B}" |
| 41 | + BorderThickness="1" /> |
33 | 42 | <StackPanel Width="Auto" Orientation="Horizontal">
|
34 |
| - <CheckBox Name="HideLnkEnabled" |
35 |
| - Width="200" |
36 |
| - Margin="70,8,10,8" |
37 |
| - Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}" |
38 |
| - IsChecked="{Binding HideAppsPath}" |
39 |
| - ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" /> |
40 |
| - <CheckBox Name="DescriptionEnabled" |
41 |
| - Margin="70,8,10,8" |
42 |
| - Content="{DynamicResource flowlauncher_plugin_program_enable_description}" |
43 |
| - IsChecked="{Binding EnableDescription}" |
44 |
| - ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" /> |
| 43 | + <CheckBox |
| 44 | + Name="HideLnkEnabled" |
| 45 | + Width="200" |
| 46 | + Margin="70,8,10,8" |
| 47 | + Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}" |
| 48 | + IsChecked="{Binding HideAppsPath}" |
| 49 | + ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" /> |
| 50 | + <CheckBox |
| 51 | + Name="DescriptionEnabled" |
| 52 | + Margin="70,8,10,8" |
| 53 | + Content="{DynamicResource flowlauncher_plugin_program_enable_description}" |
| 54 | + IsChecked="{Binding EnableDescription}" |
| 55 | + ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" /> |
45 | 56 | </StackPanel>
|
46 |
| - <Separator Height="1" BorderBrush="{DynamicResource Color03B}" BorderThickness="1" /> |
| 57 | + <Separator |
| 58 | + Height="1" |
| 59 | + BorderBrush="{DynamicResource Color03B}" |
| 60 | + BorderThickness="1" /> |
47 | 61 | </StackPanel>
|
48 |
| - <StackPanel Width="Auto" |
49 |
| - Margin="10,6,0,0" |
50 |
| - HorizontalAlignment="Left" |
51 |
| - Orientation="Horizontal"> |
52 |
| - <Button x:Name="btnLoadAllProgramSource" |
53 |
| - Width="100" |
54 |
| - Margin="10" |
55 |
| - HorizontalAlignment="Right" |
56 |
| - Click="btnLoadAllProgramSource_OnClick" |
57 |
| - Content="{DynamicResource flowlauncher_plugin_program_all_programs}" /> |
58 |
| - <Button x:Name="btnProgramSuffixes" |
59 |
| - Width="100" |
60 |
| - Margin="10" |
61 |
| - HorizontalAlignment="Right" |
62 |
| - Click="BtnProgramSuffixes_OnClick" |
63 |
| - Content="{DynamicResource flowlauncher_plugin_program_suffixes}" /> |
64 |
| - <Button x:Name="btnReindex" |
65 |
| - Width="100" |
66 |
| - Margin="10" |
67 |
| - HorizontalAlignment="Right" |
68 |
| - Click="btnReindex_Click" |
69 |
| - Content="{DynamicResource flowlauncher_plugin_program_reindex}" /> |
70 |
| - <StackPanel x:Name="indexingPanel" |
71 |
| - HorizontalAlignment="Left" |
72 |
| - Orientation="Horizontal" |
73 |
| - Visibility="Hidden"> |
74 |
| - <ProgressBar x:Name="progressBarIndexing" |
75 |
| - Width="80" |
76 |
| - Height="20" |
77 |
| - IsIndeterminate="True" |
78 |
| - Maximum="100" |
79 |
| - Minimum="0" /> |
80 |
| - <TextBlock Height="20" |
81 |
| - Margin="10,0,0,0" |
82 |
| - HorizontalAlignment="Center" |
83 |
| - Text="{DynamicResource flowlauncher_plugin_program_indexing}" /> |
| 62 | + <StackPanel |
| 63 | + Width="Auto" |
| 64 | + Margin="10,6,0,0" |
| 65 | + HorizontalAlignment="Left" |
| 66 | + Orientation="Horizontal"> |
| 67 | + <Button |
| 68 | + x:Name="btnLoadAllProgramSource" |
| 69 | + Width="120" |
| 70 | + Margin="10,10,5,10" |
| 71 | + HorizontalAlignment="Right" |
| 72 | + Click="btnLoadAllProgramSource_OnClick" |
| 73 | + Content="{DynamicResource flowlauncher_plugin_program_all_programs}" /> |
| 74 | + <Button |
| 75 | + x:Name="btnProgramSuffixes" |
| 76 | + Width="120" |
| 77 | + Margin="5,10,5,10" |
| 78 | + HorizontalAlignment="Right" |
| 79 | + Click="BtnProgramSuffixes_OnClick" |
| 80 | + Content="{DynamicResource flowlauncher_plugin_program_suffixes}" /> |
| 81 | + <Button |
| 82 | + x:Name="btnReindex" |
| 83 | + Width="120" |
| 84 | + Margin="5,10,5,10" |
| 85 | + HorizontalAlignment="Right" |
| 86 | + Click="btnReindex_Click" |
| 87 | + Content="{DynamicResource flowlauncher_plugin_program_reindex}" /> |
| 88 | + <StackPanel |
| 89 | + x:Name="indexingPanel" |
| 90 | + HorizontalAlignment="Left" |
| 91 | + Orientation="Horizontal" |
| 92 | + Visibility="Hidden"> |
| 93 | + <ProgressBar |
| 94 | + x:Name="progressBarIndexing" |
| 95 | + Width="80" |
| 96 | + Height="20" |
| 97 | + IsIndeterminate="True" |
| 98 | + Maximum="100" |
| 99 | + Minimum="0" /> |
| 100 | + <TextBlock |
| 101 | + Height="20" |
| 102 | + Margin="10,0,0,0" |
| 103 | + HorizontalAlignment="Center" |
| 104 | + Text="{DynamicResource flowlauncher_plugin_program_indexing}" /> |
84 | 105 | </StackPanel>
|
85 | 106 | </StackPanel>
|
86 | 107 | </StackPanel>
|
87 |
| - <ListView x:Name="programSourceView" |
88 |
| - Grid.Row="1" |
89 |
| - Margin="20,0,20,0" |
90 |
| - AllowDrop="True" |
91 |
| - BorderBrush="DarkGray" |
92 |
| - BorderThickness="1" |
93 |
| - DragEnter="programSourceView_DragEnter" |
94 |
| - Drop="programSourceView_Drop" |
95 |
| - GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler" |
96 |
| - PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp" |
97 |
| - SelectionMode="Extended"> |
| 108 | + <ListView |
| 109 | + x:Name="programSourceView" |
| 110 | + Grid.Row="1" |
| 111 | + Margin="20,0,20,0" |
| 112 | + AllowDrop="True" |
| 113 | + BorderBrush="DarkGray" |
| 114 | + BorderThickness="1" |
| 115 | + DragEnter="programSourceView_DragEnter" |
| 116 | + Drop="programSourceView_Drop" |
| 117 | + GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler" |
| 118 | + PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp" |
| 119 | + SelectionMode="Extended"> |
98 | 120 | <ListView.View>
|
99 | 121 | <GridView>
|
100 | 122 | <GridViewColumn Width="150" Header="Name">
|
|
107 | 129 | <GridViewColumn Header="Enabled">
|
108 | 130 | <GridViewColumn.CellTemplate>
|
109 | 131 | <DataTemplate>
|
110 |
| - <TextBlock MaxWidth="60" Text="{Binding Enabled}" TextAlignment="Center" /> |
| 132 | + <TextBlock |
| 133 | + MaxWidth="60" |
| 134 | + Text="{Binding Enabled}" |
| 135 | + TextAlignment="Center" /> |
111 | 136 | </DataTemplate>
|
112 | 137 | </GridViewColumn.CellTemplate>
|
113 | 138 | </GridViewColumn>
|
|
121 | 146 | </GridView>
|
122 | 147 | </ListView.View>
|
123 | 148 | </ListView>
|
124 |
| - <DockPanel Grid.Row="2" Grid.RowSpan="1" Margin="0,0,20,10"> |
| 149 | + <DockPanel |
| 150 | + Grid.Row="2" |
| 151 | + Grid.RowSpan="1" |
| 152 | + Margin="0,0,20,10"> |
125 | 153 | <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
126 |
| - <Button x:Name="btnProgramSourceStatus" |
127 |
| - Width="100" |
128 |
| - Margin="10" |
129 |
| - Click="btnProgramSourceStatus_OnClick" |
130 |
| - Content="{DynamicResource flowlauncher_plugin_program_disable}" /> |
131 |
| - <Button x:Name="btnEditProgramSource" |
132 |
| - Width="100" |
133 |
| - Margin="10" |
134 |
| - Click="btnEditProgramSource_OnClick" |
135 |
| - Content="{DynamicResource flowlauncher_plugin_program_edit}" /> |
136 |
| - <Button x:Name="btnAddProgramSource" |
137 |
| - Width="100" |
138 |
| - Margin="10,10,0,10" |
139 |
| - Click="btnAddProgramSource_OnClick" |
140 |
| - Content="{DynamicResource flowlauncher_plugin_program_add}" /> |
| 154 | + <Button |
| 155 | + x:Name="btnProgramSourceStatus" |
| 156 | + Width="100" |
| 157 | + Margin="10" |
| 158 | + Click="btnProgramSourceStatus_OnClick" |
| 159 | + Content="{DynamicResource flowlauncher_plugin_program_disable}" /> |
| 160 | + <Button |
| 161 | + x:Name="btnEditProgramSource" |
| 162 | + Width="100" |
| 163 | + Margin="10" |
| 164 | + Click="btnEditProgramSource_OnClick" |
| 165 | + Content="{DynamicResource flowlauncher_plugin_program_edit}" /> |
| 166 | + <Button |
| 167 | + x:Name="btnAddProgramSource" |
| 168 | + Width="100" |
| 169 | + Margin="10,10,0,10" |
| 170 | + Click="btnAddProgramSource_OnClick" |
| 171 | + Content="{DynamicResource flowlauncher_plugin_program_add}" /> |
141 | 172 | </StackPanel>
|
142 | 173 | </DockPanel>
|
143 | 174 | </Grid>
|
|
0 commit comments