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.
Unfortunately, activation email could not send to your email. Please try again.

Changing the color of selected accordion item and the accordion button

Thread ID:





124597 Jun 16,2016 03:57 AM Jun 21,2016 11:57 PM UWP 5
Tags: SfAccordion
Aayush Gupta
Asked On June 16, 2016 03:57 AM

How do we change the color of the selected item in sfaccordion as well as the color of the arrow(which is used to expand the accordion). Also, is there any way to change the placement of the arrow - for example, to the left of the header of accordion item? Thanks is advance.

Sugapriya Mariappan [Syncfusion]
Replied On June 17, 2016 02:49 AM

Hi Aayush,

Thank you for contacting Syncfusion Support.

We have prepared a sample based on your requirement. In this sample we have changed the color of the Accordion header and Arrow through AccordionButtonStyle. We have also changed the placement of the arrow to the left of the header of the AccordionItem by editing the same style



Aayush Gupta
Replied On June 17, 2016 04:01 AM

Hi, thanks for the reply. I saw the same sample in a previous thread. This handles the controls for all the properties in the sfaccordion element. I have already made a project with all the data and just need to change the color for the selected item and the arrow. There must be some single control for that, instead of binding my entire layout to the code provided in the sample. Thanks in advance

Venkateshwaran Ramdoss [Syncfusion]
Replied On June 20, 2016 06:51 AM

 Hi Aayush,

We have prepared a sample based on your requirement. In this, we have changed the Foreground and Background of the SelectedItem and arrow of the SfAccordion by setting ExpandedBackground and ExpandedStroke SolidColorBrush when the VisualState is Expanded. Please download the sample from the below link.

sample:  SfAccordionUWPSample

Hope it will help you solve the issue.

Venkateshwaran V.R.  

Aayush Gupta
Replied On June 21, 2016 09:16 AM

Thanks a lot, it solved the problem!

Venkateshwaran Ramdoss [Syncfusion]
Replied On June 21, 2016 11:57 PM

Hi Aayush,

We are glad that your issue has been resolved.
Please let us know if you need any other assistance.

Venkateshwaran V.R.


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.

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.