Click here to Skip to main content
15,041,025 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">
                            <BeginStoryboard>
                                <Storyboard  >
                                    <ColorAnimation Storyboard.TargetName="ButtonBrush"  To="{Binding Source={StaticResource resourceBrush},Path=Color}"  Storyboard.TargetProperty="Color"
                                     RepeatBehavior="Forever"
                                     AutoReverse="True"
                                     Duration="0:0:0.5"/>
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>





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 ?
Posted

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