当我滚动鼠标滚轮时,我的WPF应用程序有时会崩溃,并出现OverflowException。以下是堆栈跟踪的开头:
at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
我已经追踪到这个问题与 WindowChrome 相关 - 我甚至可以通过仅使用 WindowChrome 来重现它。但似乎它必须是全屏模式。这是怎么回事?有没有解决方法?