Friday, May 20, 2011

Fluid transition between Visible and Collapsed

The silverlight toolkit Accordion uses a ExpandableContentControl for a smooth expansion. However I find that it messes with the control layout in a dataform so prefer replacing it with a standard content control.

But I like the way ExpandableContentControl looks so that is where the states FluiUI option comes in : http://www.microsoft.com/design/toolbox/tutorials/fluidui/

Then ofcourse you could always attach the FluidMoveBehaviour to the object with target set to self.
Note: If you want this fluid transition for the children of a Panel you have to set the target to children.
A nice clean smooth animation to kick off the day.

Enjoy!