Clignotant TextBlock

Salut iam essaie de faire un Wpf TextBlock à clignoter. Je veux comme quand je clic sur un bouton, puis le textblock clignote. Comment puis-je arriver à ce.

J'ai essayé ce qui suit.

<TextBlock Name="txtBlockScannerText" Margin="10,0,0,0" Style="{StaticResource TextBlockNormal}" Text="Skanna Inleverans listan">
    <TextBlock.Triggers>
        <EventTrigger RoutedEvent="TextBlock.MouseEnter">
            <EventTrigger.Actions>
                <BeginStoryboard>
                    <Storyboard BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="txtBlockScannerText" Storyboard.TargetProperty="(Foreground).(SolidColorBrush.Color)">
                        <ColorAnimation From="Black" To="Red" Duration="0:0:1"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger.Actions>
        </EventTrigger>
    </TextBlock.Triggers>
</TextBlock>

Mais avec ce code, il ne clignote lorsque ma souris entrer. Comment puis-je déclencher le clin d'oeil à un événement de clic de bouton. Ou comment dois-je appeler l'événement à clignoter. Merci pour l'aide

InformationsquelleAutor Tan | 2010-04-16