Roberto Salemi

Roberto Salemi

  • NA
  • 146
  • 142k

[WPF] Storyboard and Mouse Over

May 15 2015 10:34 AM
Hi,


I have this storyBoard:


<Storyboard x:Key="myStoryBoard"
BeginTime="00:00:00" 
RepeatBehavior="Forever" 
Storyboard.TargetName="myBtn" 
Storyboard.TargetProperty="(Foreground).(SolidColorBrush.Color)">
<ColorAnimation From="Black" To="Red" Duration="0:0:1"/>
</Storyboard>


<Button Name="myBtn" Margin="10" Height="30" Content="MY BUTTON">
I set it with myStoryBoard.Begin() or .Stop() and it works fine.


I have only a problem, when mouse is over the blink is stopped.


Why?


Thanks.



Answers (5)