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"
67 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
8+ xmlns : ui =" http://schemas.inkore.net/lib/ui/wpf/modern"
79 xmlns : vm =" clr-namespace:Flow.Launcher.Plugin.WebSearch"
810 d : DataContext =" {d:DesignInstance vm:SettingsViewModel}"
911 d : DesignHeight =" 300"
4547 x : Name =" SearchSourcesListView"
4648 Grid.Row=" 0"
4749 Margin =" {StaticResource SettingPanelItemTopBottomMargin}"
50+ AllowDrop =" True"
4851 BorderBrush =" DarkGray"
4952 BorderThickness =" 1"
53+ Drop =" ListView_Drop"
5054 GridViewColumnHeader.Click=" SortByColumn"
5155 ItemsSource =" {Binding Settings.SearchSources}"
5256 MouseDoubleClick =" MouseDoubleClickItem"
53- SelectedItem =" {Binding Settings.SelectedSearchSource}"
54- SizeChanged =" ListView_SizeChanged"
5557 PreviewMouseLeftButtonDown =" ListView_PreviewMouseLeftButtonDown"
5658 PreviewMouseMove =" ListView_PreviewMouseMove"
57- AllowDrop = " True "
58- Drop = " ListView_Drop "
59+ SelectedItem = " {Binding Settings.SelectedSearchSource} "
60+ SizeChanged = " ListView_SizeChanged "
5961 Style =" {StaticResource {x:Static GridView.GridViewStyleKey}}" >
6062 <ListView .View>
6163 <GridView >
146148
147149 <Separator Grid.Row=" 2" Style =" {StaticResource SettingPanelSeparatorStyle}" />
148150
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"
151+ <WrapPanel Grid.Row=" 3" HorizontalAlignment =" Stretch" >
152+ <StackPanel Orientation =" Horizontal" >
153+ <TextBlock
154+ Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
156155 VerticalAlignment =" Center"
157- Content =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" />
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}"
178+ VerticalAlignment =" Center"
179+ Text =" {DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" />
158180 <ComboBox
159181 Height =" 30"
160- Margin =" {StaticResource SettingPanelItemLeftMargin }"
182+ Margin =" {StaticResource SettingPanelItemTopBottomMargin }"
161183 VerticalAlignment =" Center"
162- FontSize =" 11"
163184 IsEnabled =" {Binding Settings.EnableSuggestion}"
164185 ItemsSource =" {Binding Settings.Suggestions}"
165186 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}" />
173187 </StackPanel >
174- </DockPanel >
188+ </WrapPanel >
175189 </Grid >
176190</UserControl >
0 commit comments