I'm so glad I came across this! This QA must be supported. I had a similar problem, except for the width of the columns.
My DataGrid had Width = "Auto", as well as some column widths *. Outside the Accordion, the DataGrid was rendered perfectly, but inside the Accordion, the width of all columns will be compressed to 10 pixels each. I canβt understand why. Could it be a mistake?
I noticed that if I set a static width, like 400 instead of Auto, the columns would display correctly. Then I tried to bind the DataGrid Width to the AccordionItem ActualWidth, just like you did, and now it works fine. Thanks sir!
Andrew Lavers
source share