A XAML StackPanel
aligns controls side-by-side in a single direction. A WrapPanel
is similar but like TextWrapping="Wrap"
in a XAML TextBox
the controls "wrap" to the next column or row when the respective height or width is reached.
Similar, but not the same, WrapGrid
wraps content, but in a uniform grid. Though the VariableSizedWrapGrid
allows for dissimilar items in the container. Neither of the WrapGrids
can be used outside of an ItemsControl
. So, they are disqualified.
When developers look in their native XAML Toolbox in Visual Studio there is no WrapPanel
. WPF developers had a WrapPanel
so they might be looking for this common tool to solve their scenario. So, I have to ask:
Does anyone know of a WrapPanel in XAML-WinRT? (what about one that is virtualized?)
WPF WrapPanel control is a panel that positions child elements in sequential position from left to right by default. If child elements that are stacked don't fit in the row or column they are in, the remaining elements will wrap around in the same sequence.
The WrapPanel control 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.
There is one in WinRT XAML Toolkit here. It was ported from Silverlight Toolkit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With