我设法找到了如何制作WPF动画-两种颜色之间的过渡。它叫做ColorAnimation,效果很好。ColorAnimationanimation=newColorAnimation{From=Colors.DarkGreen,To=Colors.Transparent,Duration=newDuration(TimeSpan.FromSeconds(1.5)),AutoReverse=false};animation.Completed+=newEventHandler(animation_Completed);SolidColorBrushbrush=newSolidColorBr