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.
我是 Silverlight 的新手,我希望创建一个通过向上或向下拖动来滚动的 StackPanel,类似于 PDF 阅读器的工作方式。我不知道是否有内置的东西,或者我是否必须基于鼠标上下来创建自己的。
嗯,只需在 LMB 向下时捕捉 MouseMove 并通过最后一点和当前点之间的水平差来更改滚动偏移量。