Exception:宽度和高度必须为非负值。

报错信息 1
ArgumentException: 宽度和高度必须为非负值。
--Message: 宽度和高度必须为非负值。
StackTrace:
   在 System.Windows.Rect..ctor(Double x, Double y, Double width, Double height)
   在 System.Windows.Window.GetNormalRectDeviceUnits(IntPtr hwndHandle)
   在 System.Windows.Window.GetNormalRectLogicalUnits(IntPtr hwndHandle)
   在 System.Windows.Window.UpdateDimensionsToRestoreBounds()
   在 System.Windows.Window.WmSizeChanged(IntPtr wParam)
   在 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)

版本:1.45.5 2026-08-26 17:35 Microsoft Windows NT 10.0.19045.0