xamarin-demos icon indicating copy to clipboard operation
xamarin-demos copied to clipboard

SfAccordion

Open Mussnicht opened this issue 5 years ago • 2 comments

Excuse me,How can I make the accordion slide to the bottom automatically?

Mussnicht avatar Sep 24 '20 03:09 Mussnicht

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>

LakshmiNatarajan21 avatar Sep 25 '20 10:09 LakshmiNatarajan21

Thanks,I have another question.How can I Use accordion with BindableLayout.EmptyView,It reported an error 'Invalid type added as child'.

Mussnicht avatar Sep 26 '20 13:09 Mussnicht