Alessandro Del Sole's Blog

{ A programming space about Microsoft® .NET® }
posts - 1909, comments - 2047, trackbacks - 352

My Links


Your host

This is me! Questo spazio è dedicato a Microsoft® .NET®, di cui sono molto appassionato :-)

Cookie e Privacy

Microsoft MVP

My MVP Profile

Microsoft Certified Professional

Microsoft Specialist

Xamarin Certified Mobile Developer

Il mio libro su VB 2015!

Pre-ordina il mio libro su VB 2015 Pre-ordina il mio libro "Visual Basic 2015 Unleashed". Clicca sulla copertina per informazioni!

Il mio libro su WPF 4.5.1!

Clicca sulla copertina per informazioni! E' uscito il mio libro "Programmare con WPF 4.5.1". Clicca sulla copertina per informazioni!

These postings are provided 'AS IS' for entertainment purposes only with absolutely no warranty expressed or implied and confer no rights.
If you're not an Italian user, please visit my English blog

Le vostre visite

I'm a VB!

Guarda la mia intervista a Seattle

Follow me on Twitter!

Altri spazi

I miei progetti open-source su GitHub

Article Categories


Post Categories

Image Galleries

Privacy Policy

WPF and the WrapPanel control

There is another interesting panel in Windows Presentation Foundation, called WrapPanel. Its main feature is to place controls from left to right, wrapping controls that go over the container itself width or of  the window width.

Consider the following XAML:

    <Label Margin="10,10,10,10">Esempio di contenitore WrapPanelLabel>
    <Button Margin="10,10,10,10" Width="50">Hello!</Button>
    <Button Margin="10,10,10,10" Width="150">Second Hello!</Button>

This is what it produces on video:

If you try to enlarge the window, this is what automatically happens:

Obviously, if you reduce window's width the first button will be wrapped too.


Print | posted on martedì 16 ottobre 2007 21:00 |

Powered by:
Powered By Subtext Powered By ASP.NET