Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我正在收听 Window.LocationChanged。在我的机器和其他一些机器上,只有在窗口移动完成后才会触发(用户从标题栏拖动后释放鼠标)。在某些用户机器上,当窗口被拖动时,它会连续触发。
为什么会有差异,预期的行为应该是什么?
刚刚测试了我的理论,即“拖动时显示窗口内容”(性能选项)会影响这一点。如果内容未显示,则事件不会触发多次。