Skip to content

Commit 332fd2c

Browse files
Remove duplicate style from WrapPanel sample
1 parent c63e695 commit 332fd2c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanel.bind

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@
3232
</Grid>
3333
</DataTemplate>
3434
<Style TargetType="ListViewItem">
35+
<!-- Change those values to change the WrapPanel's children alignment -->
36+
<Setter Property="VerticalContentAlignment" Value="Center" />
37+
<Setter Property="HorizontalContentAlignment" Value="Center" />
3538
<Setter Property="Margin" Value="0" />
3639
<Setter Property="Padding" Value="0" />
40+
<Setter Property="MinWidth" Value="0" />
41+
<Setter Property="MinHeight" Value="0" />
3742
</Style>
3843
</Page.Resources>
3944

@@ -49,16 +54,6 @@
4954
HorizontalSpacing="@[HorizontalSpacing:Slider:5:0-200]@" />
5055
</ItemsPanelTemplate>
5156
</ItemsControl.ItemsPanel>
52-
<ListView.ItemContainerStyle>
53-
<Style TargetType="ListViewItem">
54-
<!-- Change those values to change the WrapPanel's children alignment -->
55-
<Setter Property="VerticalContentAlignment" Value="Center" />
56-
<Setter Property="HorizontalContentAlignment" Value="Center" />
57-
<Setter Property="Padding" Value="0" />
58-
<Setter Property="MinWidth" Value="0" />
59-
<Setter Property="MinHeight" Value="0" />
60-
</Style>
61-
</ListView.ItemContainerStyle>
6257
</ListView>
6358
</Grid>
6459
</Page>

0 commit comments

Comments
 (0)