I have this GridView
wrapped in a Grid
. When Full Screen, it looks good. But when I minimize it, I want the whole GridView
to be centered within the Grid
. In the below images (link provided), one of them is in full screen and it's ok. The other one is aligned to the left on minimizing. How can I Center them. The left and right padding is fine, but it looks ugly. Here is my GridView
styles and panels.
<GridView.ItemContainerStyle>
<Style TargetType="GridViewItem">
<Setter Property="Margin" Value="10, 10, 10, 10"/>
</Style>
</GridView.ItemContainerStyle>
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid x:Name="MaxItemsWrapGrid"
MaximumRowsOrColumns="3"
Orientation="Horizontal"/>
</ItemsPanelTemplate>
</GridView.ItemsPanel>
The GirdView
Images can be found below.