Windows 8 Metro style listbox

I am creating a wpf style application, but to start the page I needed to create a Windows 8 start screen, such as listbox, in Windows 7 and .NetFramework 4.0 .

I used Listbox and Wrappanel now, but as you can see, this is not clear !!!

enter image description here

Please help me fill in the blank box.

CHANGE change button layout enter image description here

+6
source share
4 answers

it’s not trivial at all ... even the guys from Microsoft told me that at a recent training I had ..

I recommend following the next article, which has something very close to what you need!

http://tozon.info/blog/post/2012/09/01/Variable-sized-grid-items-in-Windows-8-apps.aspx

Hope this helps!

+2
source

VariableSizeWrapGrid does the trick:

<GridView> <GridView.ItemsPanel> <ItemsPanelTemplate> <VariableSizeWrapGrid ItemHeight="100" ItemWidth="150"/> </ItemsPanelTemplate> </GridView.ItemsPanel> </GridView> 

Example result:

enter image description here

+1
source

Use the WrapPanel for the layout, and you're done:

 <ListBox> ... <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel /> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 
0
source

Source: https://habr.com/ru/post/922150/


All Articles