Wrap music [A more flexible balanced WrapPanel 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 (2)

  1. Brian Haynes says:

    David, thanks for providing this code.  I noticed when I used it that it still reserves space for items even if they have visibility = Collapsed.  I changed the code in ArrangeLine to only include each item in the calculations if element.Visibility == Windows.Visibility.Visible.  That seemed to fix it for me.

  2. Delay says:

    Brian Haynes,

    Cool, that sounds like the right thing to do!

    FYI that the panel *might* not automatically get invalidated when the Visibility of one of its children changes (probably less likely on Silverlight than WPF). So if that scenario matters to you, it could be worth looking into.