Hi Reza,
Thank you for using Syncfusion products.
We have checked the reported query from our end. We would like to let you know that you can expand one AccordionItem based on IsExpanded property by using ExpandMode as Single when loaded. Please find the following code snippet for more reference,
Xaml:
<accordion:SfAccordion x:Name="accordion"
BindableLayout.ItemsSource="{Binding Info}"
ExpandMode="Single">
<BindableLayout.ItemTemplate>
<DataTemplate>
<accordion:AccordionItem IsExpanded="{Binding IsExpanded}">
<accordion:AccordionItem.Header>
<Grid>
<Label Grid.Row="0"
Text="{Binding Name}"
TextColor="Black"
FontAttributes="Bold"
FontSize="20" />
</Grid>
</accordion:AccordionItem.Header>
<accordion:AccordionItem.Content>
<Grid HeightRequest="50">
<Label Text="{Binding Description}"/>
</Grid>
</accordion:AccordionItem.Content>
</accordion:AccordionItem>
</DataTemplate>
</BindableLayout.ItemTemplate>
</accordion:SfAccordion> |
We have prepared a sample based on your requirement. Please find the sample in the following link,
You can also refer our online user guide documentation regarding the same by the following link,
We hope this helps. Please let us know if you need any further assistance.
Regards,
Lakshmi Natarajan