File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 277
277
<Style BasedOn =" {StaticResource DefaultMenuItemStyle}" TargetType =" MenuItem" />
278
278
279
279
<!-- List View from UI.WPF.Modern to adjust GridView item margin -->
280
- <!-- // TODO: Only override Margin property in future: https://github.com/iNKORE-NET/UI.WPF.Modern/pull/349 -->
281
280
<Style
282
281
x : Key =" {x:Static GridView.GridViewItemContainerStyleKey}"
283
282
BasedOn =" {StaticResource DefaultListViewItemStyle}"
284
283
TargetType =" ListViewItem" >
285
- <Setter Property =" Margin" Value =" 0 2" />
286
284
<Setter Property =" Padding" Value =" 6 0" />
285
+ <Setter Property =" Margin" Value =" 0 2" />
287
286
<Setter Property =" Background" Value =" {DynamicResource GridViewItemBackground}" />
288
287
<Setter Property =" Foreground" Value =" {DynamicResource GridViewItemForeground}" />
289
288
<Setter Property =" MinWidth" Value =" {DynamicResource GridViewItemMinWidth}" />
290
289
<Setter Property =" MinHeight" Value =" {DynamicResource GridViewItemMinHeight}" />
291
290
<Setter Property =" Template" >
292
291
<Setter .Value>
293
292
<ControlTemplate TargetType =" ListViewItem" >
294
- <!-- Here we use 0 2 instead of 0 4 for Margin -->
295
293
<Border
296
294
x : Name =" LayoutRoot"
297
- Margin =" 0 2 "
295
+ Margin =" {TemplateBinding Margin} "
298
296
ui:PressHelper.IsEnabled=" True"
299
297
Background =" {TemplateBinding Background}"
300
298
BorderBrush =" {TemplateBinding BorderBrush}"
You can’t perform that action at this time.
0 commit comments