This one time, at band camp… [A banded StackPanel implementation for Silverlight and WPF!]

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of

See you there!

Comments (4)
  1. Suiva says:


    Would it be possible for this to calculate the number of bands rather than have to specify it? I’m looking for something that would create a balanced number of items on each row/column for an unknown number of items.

    I tried using the BalancedWrapPanel which would have been perfect but obviously it tries to put as many items on the first row as possible so you may have 7 items on the first row and 2 on the second. Do you know of a way that it would automatically create a 3 by 3 layout?

    Thanks for your time

  2. David Anson says:


    I’ve actually already written something that does what you talk about. 🙂 But it was for a different project that’s not WPF or Silverlight, so it doesn’t translate directly. I’ve just added a note to my TODO list to port that over – I’ll publish a new blog post when I do.

    Thanks for your feedback!

  3. Torsten says:

    I used the code in MeasureOverride and ArrangeOverride in the BalancedWrapPanel. It does work, but like Suiva I would like to have the number of columns calculated – and not specified with the Bands Property. You never found the time to adapt your existing code for WPF or Silverlight?

  4. David Anson says:


    Sorry, not yet!

Comments are closed.

Skip to main content