Questions tagged [wrappanel]
293 questions
3
votes
1 answer
How justify items in a wrap panel?
By using a wrap panel in WPF you can arrange items horizontaly.
Example here : WPF Tutorial | Wrap Panel
Now I want to space items equaly in order to fill the whole width. Like text justify, but items instead of words. How can I achieve this ?
Edit…

Avlin
- 500
- 4
- 20
3
votes
1 answer
with MVVM is a good practice to add controls to wrap pannel from the view model?
I have an application in WPF that use the MVVM pattern and I use to have a list or observableCollection for example to binding comboBox, DataGrids... etc. However I have a control and I would like to add dynamically items of this control to the wrap…

Álvaro García
- 18,114
- 30
- 102
- 193
3
votes
1 answer
Stretch WrapPanel items
I have WrapPanel and very similar items within it. Maybe WrapPanel is a wrong container, just describing what I have.
I want all items have equal width; minimum width of 120. Also, I want items to stretch, that is the point.
If WrapPanel width is…

adontz
- 1,428
- 16
- 36
3
votes
4 answers
WPF: How to embed button inside text flow (wrap text around button)?
I'd like an advice to the following problem: I want to embed a Button into a text flow, but when I embed a Button and Label (or TextBlock) into the WrapPanel, I get the first figure:
alt text…

Tomáš Kafka
- 4,405
- 6
- 39
- 52
3
votes
1 answer
WPF Custom ItemsControl - Wrapping issue
I want to create a breadcrumb control that has a button at the beginning that will clear the breadcrumb items. My problem is getting that first button to wrap properly with the rest of the items. Here's my style: