Questions tagged [wrappanel]
293 questions
34
votes
6 answers
WPF - How can I center all items in a WrapPanel?
I'm using a WrapPanel as the ItemsPanel of an ItemsControl. Right now, the items in the control wrap like this:
|1234567 |
|890 |
I'd like them to wrap like this:
| 1234567 |
| 890 |
Conceptually, the layout process should align each…

Drew Noakes
- 300,895
- 165
- 679
- 742
28
votes
3 answers
WPF wrap panel and scrolling
I have a simple WrapPanel which contains a number of wide controls. When I resize the Width of the Window everything works as expected. The controls will go across on a single line if there is enough space or wrap down to the next line when there…

Flack
- 5,727
- 14
- 69
- 104
24
votes
5 answers
WPF: ListBox with WrapPanel, vertical scrolling problem
I have a UserControl (XAML below) that has a ListBox that I want to display images inside a WrapPanel, where images are displayed as many as will fit on one row and then wrap onto the next row etc. It works, except when the ListBox grows higher than…

kodbuse
- 990
- 2
- 9
- 20
23
votes
4 answers
How to make WPF wrappanel child items to stretch?
I'd like to create an ItemsControl where child items are placed like a WrapPanel, but child Items should take as much space as it can. So that when the window size gets larger or smaller, the child items should stretch according to a certain…

Yeonho
- 3,629
- 4
- 39
- 61
23
votes
4 answers
Specify the max number of columns for a WrapPanel in WPF
I have a WrapPanel, And I want to specify the Max number of its columns. So, for example, when my Collection "ObjectCollection" (binded to this WrapPanel) contains only 4 elements, the WrapPanel will have only one row. But, when "ObjectCollection"…

NTinkicht
- 972
- 2
- 12
- 34
18
votes
1 answer
WPF WrapPanel - all items should have the same width
I have a ListBox whose ItemsPanel I have replaces with a WrapPanel.
The WrapPanel now hosts the databound ListboxItems. Each item has a variable sized text in it, giving each item a different width.
However, I want the width to be constant so that…

John
- 3,591
- 8
- 44
- 72
18
votes
5 answers
List Items Vertically on a WrapPanel and take advantage of multiple columns
I need to list items (all of same size) vertically (with a ScrollViewer). I want the items to spread through x columns if the container is large enough to display x columns
I first tried that :

danbord
- 3,605
- 3
- 33
- 49
17
votes
1 answer
How to make a "wrappanel" in html?
I'm very used to working in WPF, but I have recently started building websites in html.
I would like to make a list of things (let's say, each containing a pic and a description) in html that behave as if they are in a WPF wrappanel.
I think I…
user255594
17
votes
2 answers
WrapPanel not wrapping when in a StackPanel with Horizontal orientation
The labels in the example below (WPF/XAML) just parade off the screen, no wrapping occurs. Removing the orientation works, but doesn't provided the needed functionality/look & feel. Any ideas how to make the WrapPanel wrap to the current size of…

derGral
- 1,836
- 4
- 19
- 29
16
votes
3 answers
How to set WrapPanel itemsource to list?
I want to show in WrapPanel a list of images. How can I do that or maybe I shall use other control ?

Aram Gevorgyan
- 2,175
- 7
- 37
- 57
16
votes
2 answers
Adding a linebreak/new line to a WPF Wrap Panel
Does anyone know if it's even possible to enter a line break into a WPF Wrap panel? It goes against what the wrap panel is for, so I'm not sure if it's possible.
And if it's not, is there any other WPF control that actually allows me to enter a line…

Dominic K
- 6,975
- 11
- 53
- 62
15
votes
1 answer
Bind the height of a grid row to it's contents in WPF
I have a grid with a few rows. In the top row, I have an ItemsControl that is bound dynamically to a collection and uses a DataTemplateSelector and ItemsPanelTemplate (with a single horizontally arranged WrapPanel). Here's a stripped-down version…

Rich
- 36,270
- 31
- 115
- 154
15
votes
2 answers
Is there a (good/free) VirtualizingWrapPanel available for WPF?
I've found a couple of alternatives, this CodePlex project and this commercial one, but the former is extremely inefficient in my testing, and the latter, well, costs $$. I've also found this implementation, but it's not so much a WrapPanel as a…

devios1
- 36,899
- 45
- 162
- 260
14
votes
2 answers
WPF Listbox Wrapping
I have a listbox in which I use a ListBox.ItemsPanel - WrapPanel.
…

Jeff
- 2,061
- 4
- 27
- 45
14
votes
2 answers
How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?
I installed Windows 7.
I then installed Web Developer 2010 Express from here with the Web Platform Installer.
I then installed the the April 15 release of Silverlight 4 Toolkit from here.
I then added this reference:
alt text…

Edward Tanguay
- 189,012
- 314
- 712
- 1,047