Asked By
Luz M Terry
35 points
N/A
Posted on - 10/28/2013
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
Change the color of Silverlight Accordion header style
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….
Change the color of Silverlight Accordion header style
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.