There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Accordion not expanding its AccordionItem on instanciation
I'm using an Accordion with its AccordionItems set in the XAML. The selection of the AccordionItem is done in the code-behind to have the correct AccordionItem selected (opened) when the control is shown.
Unfortunately, it seems that there are race conditions going on because although I managed to make it work, adding another control to the main UserControl made it break. Now the AccordionItem is selected but doesn't open anymore (the little arrow points down
and the colour is focused).
Selecting another AccordionItem by click fixes it and setting the SelectionSequence to CollapseBeforeExpand does as well.
I tried to make a test project showing the issue but couldn't easily. Maybe it's because I have DatePicker controls in the Accordion that doesn't work.
I'll try to create a test project again soon.
Is there anything I can do to make it work as I want to?