Is there any way to set the inital state of all the items to collapsed?
<!-- AccordionButton Style -->
<Style TargetType="syncfusion:AccordionButton" x:Key="expanderButtonStyle">
<!-- Customization codes -->
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="ExpansionStates">
<VisualState x:Name="Collapsed">
<Storyboard>
This won't compile, it gives an error "the attached property can only be applied to types that are derived from frameworkelement"
it needs to be set as below;
<Style TargetType="syncfusion:AccordionButton" x:Key="expanderButtonStyle">
<!-- Customization codes -->
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="syncfusion:AccordionButton">
<Border x:Name="background" Background="{Binding Background}" CornerRadius="1,1,1,1">
<VisualStateManager.VisualStateGroups>