Exception:“0”不是属性“FontSize”的有效值。

报错信息 1
ArgumentException: “0”不是属性“FontSize”的有效值。
   在 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.39.41 2024-10-04 01:18 Microsoft Windows NT 10.0.22631.0
报错信息 2
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.43.29 2024-10-02 03:33 Microsoft Windows NT 10.0.22631.0
版本:1.42.32 2024-10-01 12:24 Microsoft Windows NT 10.0.22631.0
版本:1.43.21 2024-09-29 10:11 Microsoft Windows NT 10.0.22631.0
版本:1.42.24 2024-09-28 12:41 Microsoft Windows NT 10.0.19045.0
版本:1.42.24 2024-09-27 05:56 Microsoft Windows NT 10.0.22631.0
版本:1.42.24 2024-09-19 08:52 Microsoft Windows NT 10.0.22000.0
版本:1.43.19 2024-09-14 15:00 Microsoft Windows NT 10.0.22631.0