Have you considered using a animation to control the blinking message ? For an example I have simply added a button and a textblock to XAML. Then created a click event for the button.
<Grid>
<Button x:Name="button" Content="Button" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Click="button_Click"/>
<TextBlock x:Name="textBlock" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Warning" VerticalAlignment="Top" Margin="0,26,0,0"/>
</Grid>
And then add the following to my main windows.
public partial class MainWindow : Window
{
DoubleAnimation da = new DoubleAnimation();
public MainWindow()
{
InitializeComponent();
da.From = 30;
da.To = 35;
da.AutoReverse = true;
da.RepeatBehavior = new RepeatBehavior(3);
da.Duration = new Duration(TimeSpan.FromSeconds(0.5));
}
private void button_Click(object sender, RoutedEventArgs e)
{
textBlock.BeginAnimation(TextBlock.FontSizeProperty, da);
}
}
This