具有滚动功能的Scrollviewer操作. [英] Scrollviewer manipulation with scrolling functionality.
问题描述
我正在WPF .net 4.0中进行多点触摸实验,并且希望通过结合使用以下各项来使某项工作正常:IsManipulationEnabled,ManipulationStarting和ManipulationDelta.
当我将要包装的控件包装在ScrollViewer中并将PanningMode设置为两者时,问题就开始了.我可以平移ScrollViewer,但其他所有操作(如旋转和缩放)似乎都丢失了.是我还是这里有问题?
干杯,
Vinod.
I am experimenting with multi touch in WPF .net 4.0 and want to manage to get something working using a combination of: IsManipulationEnabled, ManipulationStarting and ManipulationDelta.
The problems start when I wrap the control being manipulated in a ScrollViewer and set PanningMode to both. I can pan the ScrollViewer around fine but all other manipulations like rotate and scale seem to be lost. Is it just me or is there a problem here?
Cheers,
Vinod.
推荐答案
查看此SO线程:
http://stackoverflow.com/Questions/2829697/is-the-a-way-to-touch-enable-scrolling-in-a-wpf-scrollviewer [ ^ ]
建议的解决方法是使用移植的Surface控件.
See this SO thread:
http://stackoverflow.com/questions/2829697/is-there-a-way-to-touch-enable-scrolling-in-a-wpf-scrollviewer[^]
The suggested workaround is to use the ported Surface controls.
这篇关于具有滚动功能的Scrollviewer操作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!