Skip to content

Commit b1e6cfa

Browse files
committed
Improve code quality
1 parent 67f7834 commit b1e6cfa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,24 +277,22 @@
277277
<Style BasedOn="{StaticResource DefaultMenuItemStyle}" TargetType="MenuItem" />
278278

279279
<!-- 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 -->
281280
<Style
282281
x:Key="{x:Static GridView.GridViewItemContainerStyleKey}"
283282
BasedOn="{StaticResource DefaultListViewItemStyle}"
284283
TargetType="ListViewItem">
285-
<Setter Property="Margin" Value="0 2" />
286284
<Setter Property="Padding" Value="6 0" />
285+
<Setter Property="Margin" Value="0 2" />
287286
<Setter Property="Background" Value="{DynamicResource GridViewItemBackground}" />
288287
<Setter Property="Foreground" Value="{DynamicResource GridViewItemForeground}" />
289288
<Setter Property="MinWidth" Value="{DynamicResource GridViewItemMinWidth}" />
290289
<Setter Property="MinHeight" Value="{DynamicResource GridViewItemMinHeight}" />
291290
<Setter Property="Template">
292291
<Setter.Value>
293292
<ControlTemplate TargetType="ListViewItem">
294-
<!-- Here we use 0 2 instead of 0 4 for Margin -->
295293
<Border
296294
x:Name="LayoutRoot"
297-
Margin="0 2"
295+
Margin="{TemplateBinding Margin}"
298296
ui:PressHelper.IsEnabled="True"
299297
Background="{TemplateBinding Background}"
300298
BorderBrush="{TemplateBinding BorderBrush}"

0 commit comments

Comments
 (0)