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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing the color of selected accordion item and the accordion button

Thread ID:





124597 Jun 16,2016 07:57 AM UTC Jun 22,2016 03:57 AM UTC UWP 5
Tags: SfAccordion
Aayush Gupta
Asked On June 16, 2016 07:57 AM UTC

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 06:49 AM UTC

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 08:01 AM UTC

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 10:51 AM UTC

 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 01:16 PM UTC

Thanks a lot, it solved the problem!

Venkateshwaran Ramdoss [Syncfusion]
Replied On June 22, 2016 03:57 AM UTC

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.

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