Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Floating items in WPF

How can I create a control container where every item (control) behaves like a Floating DIV (in HTML), like this video (considering that each folder is a control)?

like image 464
user962284 Avatar asked Oct 23 '12 02:10

user962284


1 Answers

Take a look at the WrapPanel class. MSDN

It has the functionality you are looking for.

Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.

like image 165
nmaait Avatar answered Oct 25 '22 04:10

nmaait