0
如果只放大和收縮,很容易。WPF動畫:放大住收縮
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 });
}
但現在我希望當字體大小增長到40,停留2秒,然後收縮。這個怎麼做?
看看到[DoubleAnimationUsingKeyFrames](http://msdn.microsoft.com/en-us/library/system.windows.media.animation.doubleanimationusingkeyframes.aspx) – Clemens 2012-04-23 16:15:03