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

报错信息 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.44.31 2026-02-05 16:23 Microsoft Windows NT 10.0.19045.0
版本:1.44.31 2026-02-05 16:23 Microsoft Windows NT 10.0.19045.0
版本:1.39.43 2026-02-03 00:52 Microsoft Windows NT 10.0.26100.0
版本:1.43.57 2026-01-29 02:23 Microsoft Windows NT 10.0.26200.0
版本:1.42.15 2026-01-25 14:55 Microsoft Windows NT 10.0.26200.0
版本:1.43.57 2026-01-23 16:55 Microsoft Windows NT 10.0.19044.0
版本:1.44.22 2026-01-21 16:19 Microsoft Windows NT 10.0.26100.0
版本:1.44.22 2026-01-21 15:15 Microsoft Windows NT 10.0.26200.0
版本:1.43.57 2026-01-20 15:28 Microsoft Windows NT 10.0.26100.0
版本:1.43.57 2026-01-20 11:11 Microsoft Windows NT 10.0.26100.0
版本:1.44.13 2026-01-16 14:39 Microsoft Windows NT 10.0.26100.0
版本:1.44.22 2026-01-14 09:03 Microsoft Windows NT 10.0.26100.0
版本:1.44.13 2026-01-08 21:53 Microsoft Windows NT 10.0.22631.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)
   在 DynamicClass.<>c__DisplayClass216.<UpdateGroupTabsVisuals>b__20d()
   在 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.0 2026-01-20 15:07 Microsoft Windows NT 10.0.22621.0