Questions tagged [wrappanel]
293 questions
13
votes
2 answers
WPF : Reorder WrapPanel content via drag and drop?
I am looking for a way to reorder the content (items) of a WPF WrapPanel via drag and drop. I just want to click on an item and drag it to a new position.
To my understanding this is a very common task and I wonder I someone already did this or has…

TalkingCode
- 13,407
- 27
- 102
- 147
13
votes
2 answers
Fixed Wrap panel wpf
i am working on wpf window that show list of items next each other with wrapping, i have tried to use WrapPanel in this way:

Heysem Katibi
- 1,808
- 2
- 14
- 29
12
votes
2 answers
How to wrap ItemsPanel in LongListSelector?
I am using listbox and wrappanel for displaying data.
For example:

Serhii Kyslyi
- 1,745
- 24
- 43
11
votes
1 answer
11
votes
2 answers
Binding ObservableCollection items to UserControl in WrapPanel?
I may just be missing something obvious here, so I apologize if this is a really dumb question. I have a WrapPanel in a view that I need to bind to an ObservableCollection on the ViewModel. This ObservableCollection contains a different type of…

jrista
- 32,447
- 15
- 90
- 130
10
votes
1 answer
Adding a Scrollbar to the WrapPanel
How can I add a scrollbar to the wrappanel control in WPF. Some of my controls are cutting off width wise due to the no scrollbar.

azamsharp
- 19,710
- 36
- 144
- 222
9
votes
2 answers
How to wrap multiple textbox wrap together?
I want to 1. from the following image:
My code is here:

ebattulga
- 10,774
- 20
- 78
- 116
9
votes
4 answers
Is there any way to occupy blank space in WrapPanel automatically?
The Children of WrapPanel are populated sequentially like attached screenshot.
Therefore, according to the length of each child, the Panel makes long blank space.
How can I utilize the blank space with re-arrangng the children ?
It seems only few…

Kay Lee
- 922
- 1
- 12
- 40
9
votes
1 answer
WPF WrapPanel / ItemsControl not scrolling
I have a wrap panel displaying items but I cant get a scroll bar to work properly any idea's whats wrong ?
…

Kaya
- 515
- 2
- 7
- 19
8
votes
2 answers
MouseDown doesnt work in Grid (only on buttons which in grids)
I have problem with MouseDown event. My app looks like that, I have grid in which im adding buttons in code behind

user13657
- 745
- 3
- 17
- 36
7
votes
1 answer
Making a WrapPanel respect his parent's width
Ok here's my code. Note that the StackPanel is directly in a UserControl.

Gab
- 5,604
- 6
- 36
- 52
7
votes
2 answers
How to make WrapPanel to show vertical scrollbar when children are full with or without ScrollViewer
I have a WrapPanel and buttons are programmatically created and added as children of the WrapPanel. So, I want to show vertical scrollbar when the WrapPanel is full of buttons (children) to be able to add more buttons continuously.
If we need a…

Kay Lee
- 922
- 1
- 12
- 40
7
votes
4 answers
WPF: WrapPanel in ItemsPanelTemplate expands list width
I have a listbox defined like this:
My…

Hallgeir
- 1,213
- 1
- 14
- 29
7
votes
1 answer
WPF XAML WrapPanel ListBox items in a row
I'm forced to ask for help, while I'm not able to figure it out by myself.
I'm working on WPF-XAML desktop application, in which GUI is mostly generated dynamically.
My query regards styling of WrapPanel with ListBox items.
Please find a piece of…

zyjespox
- 73
- 1
- 3
6
votes
1 answer
Share free space in a WrapPanel
I'm using a WrapPanel in WPF to display images.
When resizing the form, these images are trying to take the maximum of the free spaces but when the picture can almost fill the space, there is a relatively big gap at the end of the WrapPanel.
What I…

Sébastien
- 1,667
- 3
- 20
- 31