Hello,
I am having a problem working with the SfAccordion/Expander. I have ObservableCollection<ItemInfo> AccordionInfo Bound to the accordion's BindableLayout.ItemsSource, DisplayTime (string property of ItemInfo) bound to the headers label text, and Items (OberservableCollection property of ItemInfo) bound to the ItemsSource of my sfListView which is my accordionitem content.
Whenever I use RaisePropertyChanged($"AccordionInfo"), instead of clearing the old items and setting the new items to the newly changed AccordionInfo, it keeps the old items and adds the new items with new headers to the bottom of the accordion.
Example:
Accordion:
Header 1
Item1
Item2
Header 2
Item 1
Then say I add an Item to header 2 and RaisePropertyChanged($"AccordionInfo"), The new accordion looks like this.
Updated Accordion:
Header 1
Item1
Item2
Header 2
Item 1
Header 1
Item1
Item2
Header 2
Item 1
Item 2
My items are looking correct under each header, but not not getting rid of the old items and headers.
I will attach pictures of the xaml. Thanks!
Attachment:
AccordionPic_8ba726cb.zip