Asked by:

Silverlight AccordionItem VerticalContentAlignment not stretching?

Question

I want my AccordionItem to vertically stretch it's content to take up the rest of it's parent grid but can't figure out how. In this example I would expect the black grid to be Bisque when the 2nd item is expanded.

You will notice the content is placed in an expandable content control with the Vertical/Horizontal alignments participating in the template binding. Try setting those to strech as well. If that doesn't work, try playing around with the above style...