File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 180180 Modifiers =" {Binding OpenResultCommandModifiers}" />
181181 </Window .InputBindings>
182182 <Grid >
183- <Border MouseDown =" OnMouseDown" Style =" {DynamicResource WindowBorderStyle}" >
183+ <Border
184+ ClipToBounds =" True"
185+ MouseDown =" OnMouseDown"
186+ Style =" {DynamicResource WindowBorderStyle}" >
184187 <StackPanel Orientation =" Vertical" >
185188 <Grid >
186189 <Border Style =" {DynamicResource QueryBoxBgStyle}" >
Original file line number Diff line number Diff line change 77 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
88 xmlns : vm =" clr-namespace:Flow.Launcher.ViewModel"
99 MaxHeight =" {Binding MaxHeight}"
10- Margin =" {DynamicResource ResultMargin}"
1110 HorizontalContentAlignment =" Stretch"
1211 d : DataContext =" {d:DesignInstance vm:ResultsViewModel}"
1312 d : DesignHeight =" 100"
Original file line number Diff line number Diff line change 248248 <Setter Property =" Background" Value =" Transparent" />
249249 <Setter Property =" ScrollViewer.HorizontalScrollBarVisibility" Value =" Disabled" />
250250 <Setter Property =" ScrollViewer.VerticalScrollBarVisibility" Value =" Auto" />
251- <Setter Property =" Margin" Value =" 0,0,0,0 " />
251+ <Setter Property =" Margin" Value =" {DynamicResource ResultMargin} " />
252252 <Setter Property =" Padding" Value =" 0,0,0,0" />
253+
253254 <Setter Property =" Template" >
254255 <Setter .Value>
255256 <ControlTemplate TargetType =" ListBox" >
273274 </ControlTemplate >
274275 </Setter .Value>
275276 </Setter >
277+ <Style .Triggers>
278+ <DataTrigger Binding =" {Binding RelativeSource={RelativeSource Self}, Path=Items.Count}" Value =" 0" >
279+ <Setter Property =" Margin" Value =" 0" />
280+ </DataTrigger >
281+ </Style .Triggers>
276282 </Style >
277283
278284 <!-- ScrollViewer Style -->
360366 <Style .Triggers>
361367 <MultiDataTrigger >
362368 <MultiDataTrigger .Conditions>
363- <Condition Binding =" {Binding ElementName=QueryTextBox, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" />
364369 <Condition Binding =" {Binding ElementName=ResultListBox, Path=Visibility}" Value =" Collapsed" />
365370 <Condition Binding =" {Binding ElementName=ContextMenu, Path=Visibility}" Value =" Collapsed" />
366371 <Condition Binding =" {Binding ElementName=History, Path=Visibility}" Value =" Collapsed" />
You can’t perform that action at this time.
0 commit comments