In UWP I am creating horizontal GridView.
For ItemsPanelTemplate I am using ItemsWrapGrid as following:
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid Orientation="Vertical"
MaximumRowsOrColumns="1"
ItemWidth="200"
ItemHeight="100"/>
</ItemsPanelTemplate>
</GridView.ItemsPanel>
The problem is that I have some bottom margin that is the same height as the scrollbar. When scrollbar is hidden there is this empty space, and the items are cutted.
I have tried to change margins, paddings...but no luck.
Any idea?
If anyone have this problem, I have just added:
Margin="0,0,0,-10"
inside ItemsWrapGrid.
And it fixed it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.