Reputation:
If it is only enlarge and shrink, it is easy.
private void button1_Click(object sender, RoutedEventArgs e)
{
button1.BeginAnimation(Button.FontSizeProperty, new DoubleAnimation( 40,
new System.Windows.Duration(TimeSpan.FromSeconds(2)),
FillBehavior.Stop) { AutoReverse = true });
}
But now I hope when the font size grows to 40, stay for 2 seconds, then shrink. How to do this?
Upvotes: 1
Views: 407
Reputation: 21449
You can combine several animations into a StoryBoard, that should do the trick. You can combine the following animations:
Upvotes: 1