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.
如果您有一个同时具有水平和垂直滚动条的 ListView。你如何判断滚动事件来自哪一个?
ScrollBar.Scroll="xxx" 似乎没有区别。
哎呀想通了:
路由事件的原始来源将是滚动条,只需检查其 Orientation 属性即可。