3232 </DockPanel >
3333 </DataTemplate >
3434 </UserControl .Resources>
35- <Grid Margin =" 14" >
35+ <Grid Margin =" 14 14 14 0 " >
3636 <Grid .RowDefinitions>
37- <RowDefinition Height =" 30" />
3837 <RowDefinition Height =" 48" />
39- <RowDefinition Height =" 45 " />
38+ <RowDefinition Height =" 40 " />
4039 <RowDefinition />
40+ <RowDefinition Height =" 56" />
4141 <RowDefinition Height =" 50" />
4242 </Grid .RowDefinitions>
43- <StackPanel Orientation =" Horizontal" Grid.Row=" 0" >
44- <CheckBox IsChecked =" {Binding Settings.EnableSuggestion}"
45- Margin =" 0 0 20 0"
46- Name =" EnableSuggestion"
47- Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}" />
48- <ComboBox ItemsSource =" {Binding Settings.Suggestions}"
49- SelectedItem =" {Binding Settings.SelectedSuggestion}"
50- IsEnabled =" {Binding ElementName=EnableSuggestion, Path=IsChecked}" />
51- <!-- Not sure why binding IsEnabled directly to Settings.EnableWebSaerchSuggestion is not working -->
52- </StackPanel >
53- <StackPanel Grid.Row=" 1" HorizontalAlignment =" Left" Orientation =" Horizontal" >
43+ <StackPanel Grid.Row=" 0" HorizontalAlignment =" Left" Orientation =" Horizontal" Margin =" 14 0 0 0" >
5444 <Label Content =" {DynamicResource flowlauncher_plugin_websearch_open_search_in}" Margin =" 0 15 20 0" />
5545 <RadioButton Name =" NewWindowBrowser" GroupName =" OpenSearchBehaviour" Content =" {DynamicResource flowlauncher_plugin_websearch_new_window}" Click =" OnNewBrowserWindowClick"
5646 Margin =" 0 0 20 0" />
5747 <RadioButton Name =" NewTabInBrowser" GroupName =" OpenSearchBehaviour" Content =" {DynamicResource flowlauncher_plugin_websearch_new_tab}" Click =" OnNewTabClick" />
5848 </StackPanel >
59- <StackPanel Grid.Row=" 2 " HorizontalAlignment =" Left" Margin =" 0 3 0 0" >
60- <Label Content =" {DynamicResource flowlaucnher_plugin_websearch_set_browser_path}" Margin =" 0 0 350 0" HorizontalAlignment =" Left" Width = " 140 " />
61- <TextBox x : Name =" browserPathBox" HorizontalAlignment =" Left" Margin =" 160,-22 ,0,0" TextChanged =" OnBrowserPathTextChanged"
62- Width =" 214 " Style =" {StaticResource BrowserPathBoxStyle}" />
63- <Button x : Name =" viewButton" HorizontalAlignment =" Left" Margin =" 400,-30 ,0,0"
49+ <StackPanel Grid.Row=" 1 " HorizontalAlignment =" Left" Margin =" 14 3 0 0" Orientation = " Horizontal " >
50+ <Label Content =" {DynamicResource flowlaucnher_plugin_websearch_set_browser_path}" Margin =" 0 0 10 0" HorizontalAlignment =" Left" VerticalAlignment = " Center " />
51+ <TextBox x : Name =" browserPathBox" HorizontalAlignment =" Left" Margin =" 0,0 ,0,0" TextChanged =" OnBrowserPathTextChanged"
52+ Width =" 250 " Style =" {StaticResource BrowserPathBoxStyle}" />
53+ <Button x : Name =" viewButton" HorizontalAlignment =" Left" Margin =" 10,0 ,0,0"
6454 Click =" OnChooseClick" FontSize =" 13" Content =" {DynamicResource flowlauncher_plugin_websearch_choose}" Width =" 80" />
6555 </StackPanel >
66- <ListView ItemsSource =" {Binding Settings.SearchSources}"
56+ <ListView Margin = " 0 18 0 0 " ItemsSource =" {Binding Settings.SearchSources}"
6757 SelectedItem =" {Binding Settings.SelectedSearchSource}"
6858 x : Name =" SearchSourcesListView"
6959
70- Grid.Row=" 3 "
60+ Grid.Row=" 2 "
7161 Style =" {StaticResource {x:Static GridView.GridViewStyleKey}}"
7262 BorderBrush =" DarkGray"
7363 BorderThickness =" 1"
9585 </GridViewColumn >
9686 <GridViewColumn Header =" {DynamicResource flowlauncher_plugin_websearch_url}"
9787 DisplayMemberBinding =" {Binding Url}"
98- Width =" auto " >
88+ Width =" Auto " >
9989 <GridViewColumn .CellTemplate>
10090 <DataTemplate >
10191 <TextBlock Text =" {Binding Url}" />
10595 </GridView >
10696 </ListView .View>
10797 </ListView >
108- <StackPanel Grid.Row=" 4 " HorizontalAlignment =" Right" Orientation =" Horizontal" >
98+ <StackPanel Grid.Row=" 3 " HorizontalAlignment =" Right" Orientation =" Horizontal" >
10999 <Button Click =" OnDeleteSearchSearchClick" Width =" 100" Margin =" 10"
110100 Content =" {DynamicResource flowlauncher_plugin_websearch_delete}" />
111101 <Button Click =" OnEditSearchSourceClick" Width =" 100" Margin =" 10"
112102 Content =" {DynamicResource flowlauncher_plugin_websearch_edit}" />
113- <Button Click =" OnAddSearchSearchClick" Width =" 100" Margin =" 10 10 10 10"
103+ <Button Click =" OnAddSearchSearchClick" Width =" 100" Margin =" 10 10 0 10"
114104 Content =" {DynamicResource flowlauncher_plugin_websearch_add}" />
115105 </StackPanel >
106+ <Border BorderThickness =" 0 1 0 0" Grid.Row=" 4" Margin =" 0 0 0 0" BorderBrush =" #cecece" HorizontalAlignment =" Stretch" >
107+ <DockPanel HorizontalAlignment =" Right" Margin =" 0 14 0 0" >
108+ <StackPanel Orientation =" Horizontal" DockPanel.Dock=" Right" >
109+ <Label Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" Margin =" 14 0 10 0" HorizontalAlignment =" Right" VerticalAlignment =" Center" />
110+ <ComboBox ItemsSource =" {Binding Settings.Suggestions}" VerticalAlignment =" Center"
111+ SelectedItem =" {Binding Settings.SelectedSuggestion}"
112+ IsEnabled =" {Binding ElementName=EnableSuggestion, Path=IsChecked}" Margin =" 0 0 20 0" FontSize =" 11" Height =" 30" />
113+ <Label Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}" Margin =" 0 0 10 0" HorizontalAlignment =" Right" VerticalAlignment =" Center" />
114+ <CheckBox IsChecked =" {Binding Settings.EnableSuggestion}"
115+ Margin =" 0 0 0 0"
116+ Name =" EnableSuggestion" />
117+ </StackPanel >
118+ <!-- Not sure why binding IsEnabled directly to Settings.EnableWebSaerchSuggestion is not working -->
119+ </DockPanel >
120+ </Border >
116121 </Grid >
117122</UserControl >
0 commit comments