I've been struggeling with this one and I think it's a bug in the Accordion control, but before reporting it on CodePlex I would like to know what you all think. Here is some XAML:
<layoutToolkit:Accordion Height="250" Width="125">
As you can see I've nested two Accordion controls. In the inner Accordion there is a DataGrid which is loaded with some records in code behind. As it is now, it will not show the datagrid (not even the column header). If I remove the VerticalAlignment="Stretch" it will then show the DataGrid, but it will not stretch the height of the Accordion to match it's parent (the AccordionItem of the outer Accordion control).
I've tried wrapping the inner Accordion in other controls, like the StackPanel and the Grid and then mess around with the VerticalAlignment properties of those, but all end up hiding the DataGrid.
I've also build a user control to see if there might be a problem with the DataGrid. I had an override for MeasureOverride and debugged to see what would happen, but the measure of the DataGrid works as expected (it claims enough Height to display its content). I've tried with other content, like a StackPanel with TextBlocks and they also get hidden by the Accordion.
Has anyone seen this behavior? Does anyone know about a work around for this? Do you also feel this is a bug?
I'll be thankful for any feedback you can give me.