报错信息 1
ArgumentException: “0”不是属性“FontSize”的有效值。
--Message: “0”不是属性“FontSize”的有效值。
StackTrace:
在 System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
在 System.Windows.DependencyObject.CoerceValue(DependencyProperty dp)
在 System.Windows.SystemResources.InvalidateTreeResources(Object args)
在 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)
版本:1.45.5
2026-06-09 09:39
Microsoft Windows NT 10.0.26200.0
版本:1.43.63
2026-06-09 09:30
Microsoft Windows NT 10.0.26100.0
版本:1.45.5
2026-06-02 18:42
Microsoft Windows NT 10.0.26200.0
版本:1.44.55
2026-06-01 18:26
Microsoft Windows NT 10.0.22631.0
版本:1.45.5
2026-05-31 17:41
Microsoft Windows NT 10.0.26200.0
版本:1.45.5
2026-05-29 15:59
Microsoft Windows NT 10.0.26200.0
版本:1.43.57
2026-05-28 13:51
Microsoft Windows NT 10.0.26200.0
版本:1.44.31
2026-05-21 12:02
Microsoft Windows NT 10.0.26200.0
版本:1.44.22
2026-05-20 13:40
Microsoft Windows NT 10.0.26100.0
版本:1.44.22
2026-05-18 22:22
Microsoft Windows NT 10.0.26200.0
版本:1.42.24
2026-05-18 22:01
Microsoft Windows NT 10.0.26200.0
版本:1.45.0
2026-05-13 22:26
Microsoft Windows NT 10.0.26200.0
报错信息 2
ArgumentException: “0”不是属性“FontSize”的有效值。
--Message: “0”不是属性“FontSize”的有效值。
StackTrace:
在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
在 System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
在 DynamicClass.ApplyAllSettings(Canvas canvas, IDictionary`2 dataContext)
在 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)
版本:1.44.55
2026-05-21 15:11
Microsoft Windows NT 10.0.22631.0