My GridView items having the size of it's first item size
. How do i can change this behaviour ?
How to display GridView items
with variable Width
as per the content ?
I want to show the first one but i am getting second one.
Any suggestion to do that?
Check Windows 8 GridView and Variable-Sized Items and Different Sized Tile Items in WinRT GridView and also check Variable Sized Grid Template
Hope this help
You can create such view of
GridView
by settingItemsPanel
toWrapPanel
, you can getWrapPanel
on Jerry Nixon's blog. Here's the code.XAML
C#
Here is my solution.
//variable sized grid view
//Collection View source
//variable sized Grid view xaml