<BeginStoryboard x:Name="BeginStoryboardNameR"> <Storyboard> <ColorAnimation From="#015CBF" To="#007AFF" Storyboard.TargetName="templateRoot" Storyboard.TargetProperty="(Control.Background).(SolidColorBrush.Color)" FillBehavior="HoldEnd" Duration="0:0:.2"/> </Storyboard> </BeginStoryboard>
<SolidColorBrush x:Key="MyBox.TButton.Bg" Color="#FF2E353F"/> <BeginStoryboard x:Name="BeginStoryboardNameR"> <Storyboard> <ColorAnimation From="{StaticResource MyBox.TButton.Bg}" To="#007AFF" Storyboard.TargetName="templateRoot" Storyboard.TargetProperty="(Control.Background).(SolidColorBrush.Color)" FillBehavior="HoldEnd" Duration="0:0:.2"/> </Storyboard> </BeginStoryboard>
ColorAnimation From
<Color x:Key="MyBox.TButton.Bg">#FF2E353F</Color>
<Color x:Key="BackgroundColor">LightBlue</Color> <Color x:Key="HightlightColor">Yellow</Color> <SolidColorBrush x:Key="BackgroundBrush" Color="{StaticResource BackgroundColor}" /> <SolidColorBrush x:Key="HighlightBrush" Color="{StaticResource HightlightColor}" />
<ColorAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="Background.Color" From="{StaticResource BackgroundColor}" To="{StaticResource HightlightColor}" Duration="0:0:0.3" AutoReverse="True" RepeatBehavior="Forever" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)