The WrapPanel Panel

The WrapPanel container works like StackPanel, but it differs in that it can rearrange controls on multiple lines in the interface so that they are never hidden. Figures 28.16 and 28.17 show how the WrapPanel enables the rearranging of controls when resizing the parent container (a Window, in our examples).

Image

FIGURE 28.16 WrapPanel arranges controls similarly to the StackPanel.

Image

FIGURE 28.17 WrapPanel rearranges controls dynamically making them always visible, as if they were implemented line-by-line.

In code terms, the panel ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.