*.先上效果图(文本后面带有点点动画的效果)
xaml中相关代码如下:
<TextBlock x:Name="tBlockStatus" FontSize="12" HorizontalAlignment="Center" Foreground="#999999">
<TextBlock.Resources>
<Storyboard x:Key="TextWaitingStoryboard" RepeatBehavior="Forever" Duration="0:0:3.5">
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="waitText0">
<DiscreteColorKeyFrame KeyTime="0:0:1.0" Value="#999999"/>
</ColorAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="waitText1">
<DiscreteColorKeyFrame KeyTime="0:0:1.5" Value="#999999"/>
</ColorAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="waitText2">
<DiscreteColorKeyFrame KeyTime="0:0:2.5" Value="#999999"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</Text