We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind IsExpanded property in Xamarin.Forms Accordion (SfAccordion) ?

Thread ID:

Created:

Updated:

Platform:

Replies:

144056 Apr 16,2019 09:22 AM UTC Apr 17,2019 12:56 PM UTC Xamarin.Forms 1
loading
Tags: SfAccordion
Eugen Dolgi
Asked On April 16, 2019 09:22 AM UTC

Is IsExpanded not bindable??

Dinesh Babu Yadav [Syncfusion]
Replied On April 17, 2019 12:56 PM UTC

Hi Eugen, 
 
Thank you for contacting Syncfusion support. 
 
We would like to let you know that the IsExpanded property of an AccordionItem is a bindable property. But currently, we didn’t provided the binding support to AccordionItem. So, you can achieve the reported requirement by defining the binding context for each accordion item as like below code example. 
 
Code Example[XAML]: 
<syncfusion:SfAccordion ExpandMode="MultipleOrNone" x:Name="accordion"> 
  <syncfusion:SfAccordion.Items>  
    <syncfusion:AccordionItem IsExpanded="{Binding InvoiceHeader}"  
            BindingContext="{Binding Path=BindingContext, Source={x:Reference accordion}}"> 
 
    </syncfusion:AccordionItem> 
  </syncfusion:SfAccordion.Items> 
</syncfusion:SfAccordion> 
 
For your reference, we have prepared the sample and you can download it from the below link. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon