<SolidColorBrush x:Key="resourceBrush" Color="{Binding Source={x:Static p:Settings.Default},Path=ColorBand1BgdName}"/>
<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>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)