7
Vote

Accordion Control

description

In the febuary 2010 release, the Accordion control has a dark blue background for the opened AccordionItem, and none of the brush settings seem to change this. Googling shows others as having this issue, but no solutions as of yet.

file attachments

comments

simocks wrote May 19, 2010 at 8:30 PM

Looking at the Toolkits source code, the Blue background is being set in the Controls.Layout.Toolkit - Themes - Generic.xml Resource file. If you look at the style for layoutToolkit:AccordionItem, in the Template property, you'll see the Background set the Blue for one of the Grids. I found this to be the source of the smurfy problem.

To fix I copied and pasted this style into my own ResourceDictionary. One could also recompile the Toolkit as well.

I attached the Style in a file for anyones reference.

wrote May 19, 2010 at 8:30 PM

wrote May 19, 2010 at 8:39 PM

wrote Jun 3, 2010 at 5:57 PM

andymurray wrote Jun 11, 2010 at 7:56 AM

I think the title of this bug should be changed to something along the lines of "Accordion control has blue background as default".

SebKade wrote Jul 7, 2010 at 7:45 AM

I tried this fix and it did successfully get rid of the blue background but now my Accordion items do not expand and they are not scaling correctly (they are too short)

thanks

SebKade wrote Jul 8, 2010 at 3:49 AM

The fix is as simocks suggested, download the source code, change the blue setting described and then rebuild.

Thanks

Belua wrote Jan 19, 2012 at 9:20 AM

I have a problem... When I try this fix, it works in the sample project, but when I add the assembly to the project I'm actually working on and try to use the Accordion control, it doesn't compile and gives me an error message that the file or assembly "WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" or one of its dependencies could not be found and that an assembly with a strong name is required. (This is roughly translated because I'm using a German version of Visual Studio and couldn't find the "proper" translation of this message, I'm attaching the original message at the bottom of this comment). I'm a bit lost and not sure what to do about this... Can anyone help?

Unbekannter Buildfehler, "Die Datei oder Assembly "WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" oder eine Abhängigkeit davon wurde nicht gefunden. Eine Assembly mit starkem Namen ist erforderlich. (Ausnahme von HRESULT: 0x80131044) Zeile 14 Position 24." D:[ProjectPath]\TestControl.xaml 14 24 [ProjectName]

wrote Feb 22, 2013 at 1:40 AM