


You want the color resources that the animation is using to change if the user selects a different skin. That's not what you're trying to accomplish. You don't really want the colors to change while the animation is running. The thing is, this is protecting you from something that you don't really want anyway. The same thing happens whether you're binding to an object or you're using DynamicResource. You can't use a dynamic binding in a color animation - there's the possibility that the property could change while the animation was running. So storyboards have to be freezable, which means that all the animations in the storyboard must be freezable, and everything those animations use must also be freezable.īindings aren't freezable - pretty much by definition, as they are a mechanism whereby a dependency property can be changed. I think that understanding the error might give you a way of fixing the problem.Īnimation requires the use of threads besides the UI thread. How do I do an animation to the foreground or background color?

When using fixed colors it worked, but it cannot work with the Foreground color of the parent. Error at object '' in markup file 'HLSLEditor component/mainwindow.xaml' Line 223 Position 25. Cannot freeze this Storyboard timeline tree for use across threads. This is my source: Ĭannot convert the value in attribute 'Style' to object of type ''.
