Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a WrapPanel (not WrapGrid) control in WinRT-XAML?

Tags:

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.

enter image description here

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?)

like image 399
Jerry Nixon Avatar asked May 31 '13 15:05

Jerry Nixon


People also ask

How to use WrapPanel in Wpf?

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.

What is a WrapPanel?

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.


1 Answers

There is one in WinRT XAML Toolkit here. It was ported from Silverlight Toolkit.

like image 85
Filip Skakun Avatar answered Sep 22 '22 09:09

Filip Skakun