Binding Animation To and From Properties

When trying to bind animation To and From properties to something else you may get this exception: “Cannot freeze the storyboard timeline tree for use across threads”. One possible workaround is to put the animation in a resource.

I found a very good post with a sample and few ways to make this work. It contains explanation about why the exception is happening: https://blogs.microsoft.co.il/blogs/tamir/archive/2007/03/19/How-to-bind-to-Animation-To-and-FROM-properties.aspx