62
62
<StackPanel
63
63
x : Name =" HotkeyArea"
64
64
Grid.Column=" 2"
65
- Margin =" 0,0,10, 0"
65
+ Margin =" 0 0 10 0"
66
66
VerticalAlignment =" Center"
67
67
Visibility =" {Binding ShowOpenResultHotkey}" >
68
68
<TextBlock
69
69
x : Name =" Hotkey"
70
- Margin =" 12,0,12, 0"
71
- Padding =" 0,0,0, 0"
70
+ Margin =" 12 0 12 0"
71
+ Padding =" 0 0 0 0"
72
72
HorizontalAlignment =" Right"
73
73
VerticalAlignment =" Center"
74
74
Style =" {DynamicResource ItemHotkeyStyle}" >
97
97
98
98
<Border
99
99
Grid.Column=" 1"
100
- Margin =" 9,0,0, 0"
100
+ Margin =" 9 0 0 0"
101
101
BorderBrush =" Transparent"
102
102
BorderThickness =" 1" >
103
103
<Image
104
104
x : Name =" ImageIcon"
105
- Margin =" 0,0,0, 0"
105
+ Margin =" 0 0 0 0"
106
106
HorizontalAlignment =" Center"
107
107
IsHitTestVisible =" False"
108
108
RenderOptions.BitmapScalingMode=" Fant"
109
109
Source =" {Binding Image, TargetNullValue={x:Null}}"
110
110
Stretch =" Uniform"
111
+ StretchDirection =" DownOnly"
111
112
Style =" {DynamicResource ImageIconStyle}"
112
113
Visibility =" {Binding ShowIcon}" >
113
114
<Image .Clip>
130
131
</Border >
131
132
<Border
132
133
Grid.Column=" 1"
133
- Margin =" 9,0,0, 0"
134
+ Margin =" 9 0 0 0"
134
135
BorderBrush =" Transparent"
135
136
BorderThickness =" 0" >
136
137
<TextBlock
146
147
147
148
<Grid
148
149
Grid.Column=" 1"
149
- Margin =" 6,0,10, 0"
150
+ Margin =" 6 0 10 0"
150
151
HorizontalAlignment =" Stretch"
151
152
VerticalAlignment =" Center" >
152
153
<Grid .RowDefinitions>
172
173
<TextBlock
173
174
x : Name =" Title"
174
175
Grid.Row=" 0"
175
- Margin =" 0,0,0, 1"
176
+ Margin =" 0 0 0 1"
176
177
VerticalAlignment =" Bottom"
177
178
DockPanel.Dock=" Left"
178
179
FontSize =" {Binding Settings.ResultItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
192
193
<TextBlock
193
194
x : Name =" SubTitle"
194
195
Grid.Row=" 1"
195
- Margin =" 0,1,0, 0"
196
+ Margin =" 0 1 0 0"
196
197
VerticalAlignment =" Top"
197
198
FontSize =" {Binding Settings.ResultSubItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
198
199
IsEnabled =" False"
221
222
<!-- http://stackoverflow.com/questions/16819577/setting-background-color-or-wpf-4-0-listbox-windows-8/#16820062 -->
222
223
<ListBox .ItemContainerStyle>
223
224
<Style TargetType =" {x:Type ListBoxItem}" >
225
+ <Setter Property =" Height" Value =" {Binding Settings.ItemHeightSize}" />
226
+ <Setter Property =" Visibility" Value =" Visible" />
224
227
<EventSetter Event =" MouseEnter" Handler =" OnMouseEnter" />
225
228
<EventSetter Event =" MouseMove" Handler =" OnMouseMove" />
226
- <Setter Property =" Height" Value =" {Binding Settings.ItemHeightSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
227
229
<Setter Property =" Margin" Value =" 0" />
228
230
<Setter Property =" Padding" Value =" 0" />
229
231
<Setter Property =" BorderThickness" Value =" 0" />
256
258
</Setter >
257
259
</Style >
258
260
</ListBox .ItemContainerStyle>
259
- </ListBox >
261
+ </ListBox >
0 commit comments