33 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
55 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6- xmlns : ikw =" http://schemas.inkore.net/lib/ui/wpf"
76 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
8- xmlns : ui =" http://schemas.inkore.net/lib/ui/wpf/modern"
97 xmlns : vm =" clr-namespace:Flow.Launcher.Plugin.WebSearch"
108 d : DataContext =" {d:DesignInstance vm:SettingsViewModel}"
119 d : DesignHeight =" 300"
4745 x : Name =" SearchSourcesListView"
4846 Grid.Row=" 0"
4947 Margin =" {StaticResource SettingPanelItemTopBottomMargin}"
50- AllowDrop =" True"
5148 BorderBrush =" DarkGray"
5249 BorderThickness =" 1"
53- Drop =" ListView_Drop"
5450 GridViewColumnHeader.Click=" SortByColumn"
5551 ItemsSource =" {Binding Settings.SearchSources}"
5652 MouseDoubleClick =" MouseDoubleClickItem"
57- PreviewMouseLeftButtonDown =" ListView_PreviewMouseLeftButtonDown"
58- PreviewMouseMove =" ListView_PreviewMouseMove"
5953 SelectedItem =" {Binding Settings.SelectedSearchSource}"
6054 SizeChanged =" ListView_SizeChanged"
55+ PreviewMouseLeftButtonDown =" ListView_PreviewMouseLeftButtonDown"
56+ PreviewMouseMove =" ListView_PreviewMouseMove"
57+ AllowDrop =" True"
58+ Drop =" ListView_Drop"
6159 Style =" {StaticResource {x:Static GridView.GridViewStyleKey}}" >
6260 <ListView .View>
6361 <GridView >
148146
149147 <Separator Grid.Row=" 2" Style =" {StaticResource SettingPanelSeparatorStyle}" />
150148
151- <WrapPanel Grid.Row=" 3" HorizontalAlignment =" Stretch" >
152- <StackPanel Orientation =" Horizontal" >
153- <TextBlock
154- Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
155- VerticalAlignment =" Center"
156- Text =" {DynamicResource flowlauncher_plugin_websearch_max_suggestions}" />
157- <ui : NumberBox
158- Width =" 120"
159- MinWidth =" 120"
160- Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
161- Maximum =" 1000"
162- Minimum =" 1"
163- SmallChange =" 10"
164- SpinButtonPlacementMode =" Compact"
165- ValidationMode =" InvalidInputOverwritten"
166- ValueChanged =" NumberBox_ValueChanged"
167- Value =" {Binding Settings.MaxSuggestions, Mode=OneWay}" />
168- </StackPanel >
169- <CheckBox
170- Name =" EnableSuggestion"
171- Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
172- VerticalAlignment =" Center"
173- Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}"
174- IsChecked =" {Binding Settings.EnableSuggestion}" />
175- <StackPanel Orientation =" Horizontal" >
176- <TextBlock
177- Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
149+ <DockPanel
150+ Grid.Row=" 3"
151+ Margin =" {StaticResource SettingPanelItemTopBottomMargin}"
152+ HorizontalAlignment =" Right" >
153+ <StackPanel DockPanel.Dock=" Right" Orientation =" Horizontal" >
154+ <Label
155+ HorizontalAlignment =" Right"
178156 VerticalAlignment =" Center"
179- Text =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" />
157+ Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" />
180158 <ComboBox
181159 Height =" 30"
182- Margin =" {StaticResource SettingPanelItemTopBottomMargin }"
160+ Margin =" {StaticResource SettingPanelItemLeftMargin }"
183161 VerticalAlignment =" Center"
162+ FontSize =" 11"
184163 IsEnabled =" {Binding Settings.EnableSuggestion}"
185164 ItemsSource =" {Binding Settings.Suggestions}"
186165 SelectedItem =" {Binding Settings.SelectedSuggestion}" />
166+ <CheckBox
167+ Name =" EnableSuggestion"
168+ Margin =" {StaticResource SettingPanelItemLeftMargin}"
169+ HorizontalAlignment =" Right"
170+ VerticalAlignment =" Center"
171+ Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion}"
172+ IsChecked =" {Binding Settings.EnableSuggestion}" />
187173 </StackPanel >
188- </WrapPanel >
174+ </DockPanel >
189175 </Grid >
190176</UserControl >
0 commit comments