Exception:无法为“Automatic”的 Duration 值返回 TimeSpan 属性值。在从 Duration 请求 TimeSpan 属性值之前,检查 HasTimeSpan 属性。

报错信息

InvalidOperationException: 无法为“Automatic”的 Duration 值返回 TimeSpan 属性值。在从 Duration 请求 TimeSpan 属性值之前,检查 HasTimeSpan 属性。
StackTrace:
   在 System.Windows.Duration.get_TimeSpan()
   在 DynamicClass.Timer_Tick(Object sender, EventArgs e)
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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)

 

解决方法

暂无解决方案。

相关信息
0 查看
2025-04-16 12:00
Quicker版本
版本 反馈次数