xamarin-demos
xamarin-demos copied to clipboard
SfAccordion
Excuse me,How can I make the accordion slide to the bottom automatically?
Hi @Mussnicht ,
You can use IsExpanded property for AccordionItem to expand/collapse automatically without interactions.
<syncfusion:SfAccordion Grid.Row="1">
<syncfusion:SfAccordion.Items>
<syncfusion:AccordionItem IsExpanded="True">
<syncfusion:AccordionItem.Header>
<Grid>
<Label TextColor="#495F6E" Text="Cheese burger" HeightRequest="50" VerticalTextAlignment="Center"/>
</Grid>
</syncfusion:AccordionItem.Header>
<syncfusion:AccordionItem.Content>
<Grid Padding="10,10,10,10" BackgroundColor="#FFFFFF">
<Label TextColor="#303030" Text="Hamburger accompanied with melted cheese. The term itself is a portmanteau of the words cheese and hamburger. The cheese is usually sliced, then added a short time before the hamburger finishes cooking to allow it to melt." HeightRequest="50" VerticalTextAlignment="Center"/>
</Grid>
</syncfusion:AccordionItem.Content>
</syncfusion:AccordionItem>
</syncfusion:SfAccordion.Items>
</syncfusion:SfAccordion>
Thanks,I have another question.How can I Use accordion with BindableLayout.EmptyView,It reported an error 'Invalid type added as child'.