Search code examples
c#wpfxamlpanelwrappanel

Set max rows in a wrap panel


I need to configure a wrap panel where I can set the max rows or max columns in it.

This is really necessary, I'm using WPF 4.0. But the another day, I was programmin Metro applications and I remember that one of its controls has this properties, but in WPF not (until I know).

Is exists such control in WPF 4.0? Or do I need to create a new one?


Solution

  • You can set ItemHeight and ItemWidth properties to set the max rows and columns...

    For more info, have a look here