I'm sorry if the question title wasnt clear, but I'm trying to make something like this, I dunno if they are tiles or images inside a WrapControl:
I was thinking of making such thing with a wrap panel and each one of those blocks as a stackpanel. but I'm not sure if thats the right approach.
is there a control to do such thing?
You are on the right track.
WrapPanel
is the way to go :)To make each block more interesting, you can take a look at the HubTile control from the latest windows phone toolkit. Whatever controls/panels you are using, just remember the size should be 173*173.
Use a ListBox
In one of my projects I created a
ListBox
that does all this. The reason that I use aListBox
is becauseListBox
has aSelectedItem
propery which tells me which tile is tapped by the user. Also another reason isListBoxItems
can receive the nice tilt effect.Baiscally you just need to create a tile-like
ListBoxItem
style and apply it to theListBox
'sItemContainerStyle
, also you need to set theListBox
'sItemsPanel
to be aWrapPanel
.How it looks
The ListBoxItem Style
The ListBox
You can see the last item is actually a
HubTile
.Hope ths helps! :)