ArgumentException: “NaN”不是属性“MaxWidth”的有效值。 --Message: “NaN”不是属性“MaxWidth”的有效值。 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.FloatingBallWindow.ApplyLayoutAndPosition(Window win, AppConfig config, Boolean isInitializing, Boolean forceRebuild) 在 DynamicClass.FloatingBallWindow.<>c__DisplayClass28.<OnWindowLoaded>b__7(Object param0, EventArgs param1) 在 System.Windows.Window.OnLocationChanged(EventArgs e) 在 System.Windows.Window.WmMoveChangedHelper() 在 System.Windows.Window.WmMoveChanged() 在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 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)