How to create a rollover colour change for a listbox item using MS Blend (WPF)
Posted on 2010-09-08
I am tring to create an accordion navigation menu control in MS blend with custom rollover effects. I think the listbox/listboxItem control is best suiterd for this task.
I can drag and drop the list box onto my control and place the list box items inside without problem. However when I try to change the background colour of the list box item for when the mouse goes over I see the following error (in the viewer):
"A design time error was discored in the prototype
Cannot animate '¿0¿.¿1¿' on an immutable object instance."
To create the rollover effect I select the listboxitem, right click and edit the template. Inside the template I set the state to mouseover and the state recording starts. I then selected the bd object and change the backgorund colour; however this doesn't seem to work.