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.45.5 2026-09-29 15:45 Microsoft Windows NT 10.0.26100.0
版本:1.45.5 2026-09-24 16:17 Microsoft Windows NT 10.0.26200.0
版本:1.45.5 2026-09-23 13:10 Microsoft Windows NT 10.0.19045.0
版本:1.45.5 2026-09-23 08:40 Microsoft Windows NT 10.0.26100.0
版本:1.45.5 2026-09-17 14:37 Microsoft Windows NT 10.0.26200.0
版本:1.44.55 2026-09-14 19:22 Microsoft Windows NT 10.0.26200.0
版本:1.44.22 2026-09-14 01:55 Microsoft Windows NT 10.0.26100.0
版本:1.45.5 2026-09-12 22:36 Microsoft Windows NT 10.0.26200.0
版本:1.44.31 2026-09-11 14:23 Microsoft Windows NT 10.0.26200.0