AnimationException: 无法使用“System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames”动态“System.Windows.Controls.Button”上的“Visibility”属性。有关详细信息,请查看内部异常。 --Clock: System.Windows.Media.Animation.AnimationClock --Property: Visibility --Target: System.Windows.Controls.Button: 复制 StackTrace: 在 System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args) 在 System.Windows.Media.Animation.Clock.FireEvent(EventPrivateKey key) 在 System.Windows.Media.Animation.Clock.RaiseAccumulatedEvents() 在 System.Windows.Media.Animation.TimeManager.RaiseEnqueuedEvents() 在 System.Windows.Media.Animation.TimeManager.Tick() 在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) 在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) InvalidOperationException: 应用于“Visibility”属性的动画计算“Visible”的当前值,该值不是此属性的有效值。 StackTrace: 在 System.Windows.Media.Animation.AnimationStorage.GetCurrentPropertyValue(AnimationStorage storage, DependencyObject d, DependencyProperty dp, PropertyMetadata metadata, Object baseValue) 在 System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)