Click here to Skip to main content
15,790,917 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have Project setting value for ColorBand1bgdName.

In Windows Resources i have this code

<SolidColorBrush x:Key="resourceBrush" Color="{Binding Source={x:Static p:Settings.Default},Path=ColorBand1BgdName}"/>

In StoryBroad i have this code

<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="Button">
                                <Storyboard  >
                                    <ColorAnimation Storyboard.TargetName="ButtonBrush"  To="{Binding Source={StaticResource resourceBrush},Path=Color}"  Storyboard.TargetProperty="Color"

Iam getting Cannot freeze this Storyboard timeline tree for use across threads. error how to resolve it ?

How to dynamically bind the ColorAnimation To Property ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900