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 dlaa.me.
See you there!
Comments
Anonymous
February 15, 2010
Hi, 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 timeAnonymous
February 16, 2010
Suiva, 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!Anonymous
November 29, 2010
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?Anonymous
November 30, 2010
Torsten, Sorry, not yet!