Change the color of Silverlight Accordion header style

Asked By 35 points N/A Posted on -
qa-featured

Hello Friends,

I am using Accordion control into the user control of Silverlight, being new to Silverlight, I don’t know about how to change the color of Silverlight Accordion header style. If you can provide me the steps of doing the same, that will really help me.

Thanks,

Luz M Terry

SHARE
Best Answer by Keith Riley
Answered By 0 points N/A #194053

Change the color of Silverlight Accordion header style

qa-featured

Changing the color of Accordion Header style cannot be done just by changing a few items. Even if you bring some changes to the “Header property”, the “Border” entity does not affect the entire header. You can override the “AccordionButton Style” property in order to change the color. Following are the steps:

1. Locate the style presented in “Silverlight Toolkit”. Go to "Siverlight Toolkits Source Controls.Layout.ToolkitThemesgeneric.xaml".

2. Now import the following namespaces:

xmlns : layoutPrimitivesToolkit="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Layout.Toolkit"

xmlns : vsm="clr-namespace:System.Windows;assembly=System.Windows"

……..your items here….

Best Answer
Best Answer
Answered By 5 points N/A #194054

Change the color of Silverlight Accordion header style

qa-featured

Hi!

Here I am to provide the solution of your problem.

Firstly, if you want to change the color of background, you can simply change it directly. Directly means you need to click on Expandable button' background. Furthermore, you are capable of creating panel at your content.

Otherwise, please try this alternative solution. Firstly, you'll get Accordion Control Template once you installed this program. There, you are able to edit the ExpandableContentControl's style thus change the color.

Hopefully those two solutions might give you additional solutions for this particular problem.

Related Questions